forked from lutris/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
83 lines (76 loc) · 1.62 KB
/
docker-compose.prod.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3.7'
services:
lutrisweb:
restart: always
build:
context: .
dockerfile: prod.Dockerfile
env_file: .env.${DEPLOY_ENV}
volumes:
- type: volume
source: web-media
target: /app/media
volume:
nocopy: true
- type: volume
source: web-static
target: /app/static
depends_on:
- lutrisdb
- lutriscache
lutrisworker:
restart: always
build:
context: .
dockerfile: prod.Dockerfile
env_file: .env.${DEPLOY_ENV}
volumes:
- type: volume
source: web-media
target: /app/media
volume:
nocopy: true
depends_on:
- lutrisdb
- lutriscache
command: celery worker -A lutrisweb.celery.app -B -l info
lutrisnginx:
restart: always
build:
context: .
dockerfile: config/nginx/Dockerfile
image: nginx/latest
# Expose a port for the Nginx proxy
ports:
- target: 80
published: ${HTTP_PORT}
mode: host
protocol: tcp
volumes:
- web-static:/srv/static
- web-media:/srv/media
- web-files:/srv/files
- web-releases:/srv/releases
depends_on:
- lutrisweb
lutrisdb:
restart: always
image: postgres:12
# Expose a port to do backups
ports:
- "127.0.0.1:${POSTGRES_HOST_PORT}:5432"
volumes:
- postgresql:/var/lib/postgresql/data
env_file: .env.${DEPLOY_ENV}
lutriscache:
restart: always
image: redis:6.0.1
volumes:
- redisdata:/data
volumes:
postgresql:
web-media:
web-static:
web-files:
web-releases:
redisdata: