colouring-montreal/docker-compose.yml

46 lines
1.2 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: .
2022-02-08 09:52:25 -05:00
dockerfile: Dockerfile
2022-02-07 08:33:56 -05:00
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:
2022-02-08 09:13:23 -05:00
container_name: postgres-colouring-london
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: