-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (45 loc) · 1.18 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
latest-rates:
build: build/fcgi
restart: always
container_name: taggy-latest-rates
environment:
- FCGI_FLAGS=-DNODEBUG
- FCGI_SRC=latest.cpp
- FCGI_BUILD_LOG=/var/log/fcgi/latest-build.log
- FCGI_DEBUG_LOG=/var/log/fcgi/latest-debug.log
- NGINX_ACCESS_LOG=/var/log/fcgi/latest-access.log
- NGINX_ERROR_LOG=/var/log/fcgi/latest-error.log
volumes:
- ./logs:/var/log/fcgi
- ./src:/src
- ./data:/data
history-rates:
build: build/fcgi
restart: always
container_name: taggy-history-rates
links :
- latest-rates:latest
environment:
- FCGI_FLAGS=-DNODEBUG
- FCGI_SRC=history.cpp
- FCGI_BUILD_LOG=/var/log/fcgi/history-build.log
- FCGI_DEBUG_LOG=/var/log/fcgi/history-debug.log
- NGINX_ACCESS_LOG=/var/log/fcgi/history-access.log
- NGINX_ERROR_LOG=/var/log/fcgi/history-error.log
volumes:
- ./logs:/var/log/fcgi
- ./src:/src
- ./data:/data
balancer:
build: build/balancer
restart: always
container_name: taggy-balancer
links :
- latest-rates:latest
- history-rates:history
ports:
- "8068:80"
volumes:
- ./logs:/var/log/balancer
- ./html:/var/www/html
- ./static:/var/www/static