master
1services:
2 db:
3 image: sundown/db
4 build:
5 context: ./db
6 restart: always
7 environment:
8 - POSTGRES_USER=postgres
9 - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
10 - POSTGRES_DB=sundown
11 app:
12 image: sundown/app
13 platform: linux/amd64
14 build:
15 context: ./app
16 depends_on:
17 - db
18 restart: always
19 environment:
20 - POSTGRES_URL=postgres://postgres:${POSTGRES_PASSWORD:-postgres}@db:5432/sundown
21 - FLAG=${FLAG:-PCTF{test_flag}}
22 ports:
23 - "3000:80"