Skip to content
Snippets Groups Projects
docker-compose.yml 745 B
Newer Older
Rajesh  D's avatar
dev
Rajesh D committed
version: '8.1'

services:

  db:
    image: mysql
    # NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
    # (this is just an example, not intended to be a production configuration)
    command: --default-authentication-plugin=mysql_native_password
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: example

  adminer:
    image: adminer
    restart: always
    ports:
      - 8080:8080

  photogram:
    build: "photogram/."
    restart: always
    ports:
      - 80:80
    volumes:
      - userdata:/root
      - ./photogram/photogramm:/var/www/html
    links:
      - adminer
      - db

volumes:
    userdata: