forked from lutris/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (82 loc) · 1.82 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '3.4'
services:
lutrisweb:
build:
context: .
dockerfile: dev.Dockerfile
container_name: lutrisweb
volumes:
- ./:/app
- components:/app/components
- media:/app/media
- public:/app/public
- vue_dist:/app/frontend/vue/dist
- vue_static:/app/frontend/vue/static
ports:
- "8000:8000"
restart: on-failure
stdin_open: true
tty: true
depends_on:
- lutrisdb
- lutriscache
- lutrisfrontend
lutrisfrontend:
build:
context: .
dockerfile: frontend.Dockerfile
container_name: lutrisfrontend
volumes:
- ./frontend/css:/app/frontend/css
- ./frontend/image:/app/frontend/image
- ./frontend/js:/app/frontend/js
- ./frontend/vue/src:/app/frontend/vue/src
- vue_dist:/app/frontend/vue/dist
- vue_static:/app/frontend/vue/static
- components:/app/components
- public:/app/public
stdin_open: true
tty: true
restart: on-failure
celery_worker:
build:
context: .
container_name: celery_worker
volumes:
- type: volume
source: media
target: /app/media
volume:
nocopy: true
depends_on:
- lutrisdb
- lutriscache
command: celery worker -A lutrisweb.celery.app -B -l info
lutrisdb:
image: postgres:12
container_name: lutrisdb
expose:
- "5430"
command: -p 5430
volumes:
- postgresql:/var/lib/postgresql/data
environment:
POSTGRES_DB: 'lutris'
POSTGRES_USER: 'lutris'
POSTGRES_PASSWORD: 'admin'
lutriscache:
container_name: lutriscache
restart: on-failure
image: redis:6.0.1
ports:
- "6379:6379"
volumes:
- redisdata:/data
volumes:
postgresql:
media:
redisdata:
public:
components:
vue_static:
vue_dist: