-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprod.docker-compose.yaml
61 lines (61 loc) · 1.4 KB
/
prod.docker-compose.yaml
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
version: '3'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
depends_on:
- database
env_file: ./backend/.env
environment:
DATABASE_HOST: database
DATABASE_USERNAME: ${DATABASE_USERNAME}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
NODE_ENV: production
expose:
- 1337
restart: unless-stopped
volumes:
- ${PLEX_DIR}:/home/node/app/media
- ./backend/clips:/home/node/app/clips
- ./backend/uploads:/home/node/app/uploads
working_dir: /home/node/app
database:
environment:
POSTGRES_DB: clipping-service
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
expose:
- 5432
image: postgres
restart: unless-stopped
volumes:
- ./database:/var/lib/postgresql/data
frontend:
build:
context: ./frontend
depends_on:
backend:
condition: service_healthy
environment:
GIT_COMMIT: ${GIT_COMMIT}
expose:
- 3000
restart: unless-stopped
working_dir: /home/node/app
nginx:
command: nginx -g "daemon off;"
depends_on:
backend:
condition: service_healthy
frontend:
condition: service_started
image: nginx
ports:
- ${PORT:-9000}:80
restart: unless-stopped
volumes:
- ./config/nginx.conf:/etc/nginx/nginx.conf
volumes:
database:
driver: local