forked from linuxfrorg/linuxfr.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
82 lines (74 loc) · 1.66 KB
/
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.1'
services:
linuxfr.org:
build:
context: .
dockerfile: deployment/linuxfr.org/Dockerfile
env_file:
- deployment/default.env
volumes:
# Share host directories so, the developer can edit them
# and see the result without need to restart the container
- ./app:/linuxfr.org/app
- ./db:/linuxfr.org/db
- ./public:/linuxfr.org/public
- ./test:/linuxfr.org/test
# uploads are shared with the nginx service
- data-uploads:/linuxfr.org/uploads
tmpfs:
- /linuxfr.org/public/tmp:size=100M
depends_on:
- database
- redis
linuxfr-board:
build:
context: deployment/linuxfr-board
env_file:
- deployment/default.env
depends_on:
- redis
linuxfr-img:
build:
context: deployment/linuxfr-img
env_file:
- deployment/default.env
depends_on:
- redis
volumes:
- cache-img:/linuxfr-img/cache
nginx:
image: nginx:stable
env_file:
- deployment/default.env
volumes:
- ./deployment/nginx/templates:/etc/nginx/templates
- ./public/fonts:/var/linuxfr/fonts
- data-uploads:/var/linuxfr/uploads
ports:
- "80:80"
depends_on:
- linuxfr.org
- linuxfr-board
- linuxfr-img
database:
build:
context: deployment/database
env_file:
- deployment/default.env
ports:
- "3306:3306"
volumes:
- data-database:/var/lib/mysql
redis:
image: redis:5
volumes:
- data-redis:/data
volumes:
data-database:
driver: local
data-redis:
driver: local
data-uploads:
driver: local
cache-img:
driver: local