github.com/matthieudolci/hatcher@v0.2.8/docker-compose.yml (about) 1 version: '3.6' 2 3 services: 4 postgres: 5 image: postgres:10.4 6 container_name: postgres 7 environment: 8 - POSTGRES_PASSWORD=12345 9 - POSTGRES_USER=hatcher 10 volumes: 11 - ./.docker-data/pg:/var/lib/postgresql/data/ 12 - ./database/schema.sql:/docker-entrypoint-initdb.d/1-schema.sql 13 ports: 14 - 5432:5432 15 16 hatcher: 17 build: 18 context: . 19 dockerfile: Dockerfile 20 # image: matthieudolci/hatcher:latest 21 container_name: hatcher 22 depends_on: 23 - postgres 24 environment: 25 - DBHOST=postgres 26 - DBPORT=5432 27 - DBUSER=hatcher 28 - DBPASS=12345 29 - DBNAME=hatcher 30 - SLACK_TOKEN=$SLACK_TOKEN 31 ports: 32 - 9191:9191