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
|
2022-02-09 04:52:12 -05:00
|
|
|
APP_COOKIE_SECRET: 123456
|
2022-02-07 08:33:56 -05:00
|
|
|
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-09 04:52:12 -05:00
|
|
|
POSTGRES_DB: colouring-london-db
|