forked from HHS/simpler-grants-gov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (60 loc) · 1.52 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3'
services:
main-db:
image: postgres:14-alpine
container_name: main-db
command: postgres -c "log_lock_waits=on" -N 1000 -c "fsync=off"
environment:
POSTGRES_PASSWORD: secret123
ports:
- "5432:5432"
volumes:
- dbdata:/var/lib/postgresql/data
main-api:
build:
context: ./api
target: dev
args:
- RUN_UID=${RUN_UID:-4000}
- RUN_USER=${RUN_USER:-api}
command: ["poetry", "run", "flask", "--app", "src.app", "run", "--host", "0.0.0.0", "--port", "8080", "--reload"]
container_name: main-api
env_file: ./api/local.env
ports:
- 8080:8080
volumes:
- ./api:/api
depends_on:
- main-db
nextjs:
container_name: next-dev
build:
context: ./frontend
target: dev
env_file:
# Add your non-secret environment variables to this file:
- ./frontend/.env.development
# If you have secrets, add them to this file and uncomment this line:
# - ./frontend/.env.local
volumes:
- ./frontend/src:/frontend/src
- ./frontend/public:/frontend/public
restart: always
ports:
- 3000:3000
storybook:
container_name: storybook
build:
context: ./frontend
target: dev
command: npm run storybook
volumes:
- ./frontend/src:/frontend/src
- ./frontend/public:/frontend/public
- ./frontend/.storybook:/frontend/.storybook
- ./frontend/stories:/frontend/stories
restart: always
ports:
- 6006:6006
volumes:
dbdata: