colouring-montreal/docker-compose.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

2022-02-07 08:33:56 -05:00
version: "3"
services:
colouring-london:
container_name: colouring-london
build:
context: .
dockerfile: .Dockerfile
depends_on:
- postgres
environment:
2022-02-07 09:16:36 -05:00
DATABASE_URL: postgres://postgres:postgres@postgres:8080/colouring-london-db
2022-02-07 08:33:56 -05:00
NODE_ENV: development
PORT: 8080
ports:
- "8080:8080"
postgres:
container_name: postgres
2022-02-08 09:05:12 -05:00
image: postgres:14
2022-02-07 08:33:56 -05:00
ports:
- "5432:5432"
2022-02-08 09:05:12 -05:00
volumes:
- ./postgresdata:/var/lib/postgresql/data
- ./colouring-london/init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
2022-02-07 08:33:56 -05:00
restart: always
environment:
2022-02-07 09:16:36 -05:00
POSTGRES_USER: dockeruser
POSTGRES_PASSWORD: postgres
2022-02-07 08:33:56 -05:00
POSTGRES_DB: colouring-london-db
2022-02-08 09:09:42 -05:00
APP_COOKIE_SECRET: 123456
2022-02-07 09:16:36 -05:00
# pgadmin:
# container_name: pgadmin
# image: dpage/pgadmin4:4.18
# restart: always
# environment:
# PGADMIN_DEFAULT_EMAIL: admin@linuxhint.com
# PGADMIN_DEFAULT_PASSWORD: secret
# PGADMIN_LISTEN_PORT: 80
# ports:
# - "8080:80"
# volumes:
# - pgadmin-data:/var/lib/pgadmin
# depends_on:
# - postgres
# volumes:
# db-data:
# pgadmin-data: