-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 970 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 970 Bytes
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
version: "3"
services:
backend:
image: ${DOCKER_HUB_USERNAME}/job_board_backend
build: ./backend
container_name: backend
command:
- ./commands/start_server.sh
expose:
- ${WSGI_PORT}
volumes:
- ./backend:/backend
env_file:
- .env
depends_on:
- postgres
frontend:
image: ${DOCKER_HUB_USERNAME}/job_board_frontend
build:
context: ./frontend
dockerfile: Dockerfile-prod
args:
VUE_APP_BACKEND: ${VUE_APP_BACKEND}
container_name: frontend
env_file:
- .env
ports:
- "80:80"
command:
/bin/sh -c "envsubst < /etc/nginx/conf.d/fastapi.conf.template >
/etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
depends_on:
- backend
postgres:
image: postgres:12
container_name: postgres
expose:
- 5432
env_file:
- .env
volumes:
- pg_data:/var/lib/postgresql/data
volumes:
pg_data: { }