-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.35 KB
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.9'
services:
db:
image: postgres
restart: always
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
adminer:
image: adminer
restart: always
ports:
- "${ADMINER_PORT}:${ADMINER_PORT}"
command:
- 'php'
- '-S'
- '[::]:${ADMINER_PORT}'
- '-t'
- '/var/www/html'
depends_on:
- db
backend:
image: backend
restart: always
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "${BACKEND_PORT}:${BACKEND_PORT}"
env_file:
- .backend.env
- .env
command: bash -c "alembic upgrade head && gunicorn main:app --workers 1 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:443"
depends_on:
- db
frontend:
image: frontend
restart: always
build:
args:
- REACT_APP_SERVER_PROTOCOL=http
- REACT_APP_SERVER_HOST=${HOST}
- REACT_APP_SERVER_PORT=${BACKEND_PORT}
context: ./frontend
dockerfile: Dockerfile
command: bash -c "serve -s build"
depends_on:
- backend
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
env_file:
- .env
ports:
- "80:80"
depends_on:
- frontend