This repository has been archived by the owner on Oct 14, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdocker-compose.yml
97 lines (87 loc) · 2.2 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
92
93
94
95
96
97
version: '3'
services:
bot:
build: .
env_file: .env
restart: always
command: ["python", "main.py"]
depends_on:
- mysql
calculator:
build: .
env_file: .env
restart: unless-stopped
command: ["python", "calculator.py"]
depends_on:
- mysql
submitter:
build: .
env_file: .env
restart: always
command: ["python", "submitter.py"]
depends_on:
- mysql
leaderboard:
build: .
env_file: .env
restart: unless-stopped
command: ["python", "leaderboard.py"]
depends_on:
- mysql
payroll:
build: .
env_file: .env
restart: unless-stopped
command: ["python", "payroll.py"]
depends_on:
- mysql
dummy:
build: .
env_file: .env
restart: on-failure
command: ["python", "dummy.py"]
depends_on:
- mysql
api:
build:
context: .
dockerfile: docker/Dockerfile-golang
env_file: .env
restart: unless-stopped
command: ["./api"]
depends_on:
- mysql
- http
http:
build:
context: .
dockerfile: docker/Dockerfile-caddy
env_file: .env
restart: unless-stopped
ports:
- 2015:2015
- 80:80
- 443:443
volumes:
- "/data/memeinvestor/caddy/data:/root/.caddy"
- "/data/memeinvestor/caddy/logs:/var/log"
- "/data/memeinvestor/goaccess/html:/site/goaccess"
mysql:
image: mariadb:10.2.15
env_file: .env
restart: unless-stopped
ports:
- 127.0.0.1:3306:3306
volumes:
- "/data/memeinvestor/mysql:/var/lib/mysql"
goaccess:
build:
context: .
dockerfile: docker/Dockerfile-goaccess
entrypoint: goaccess --config-file=/etc/.goaccess.caddy.conf
volumes:
- "/data/memeinvestor/caddy/logs:/srv/logs"
- "/data/memeinvestor/goaccess/data:/srv/data"
- "/data/memeinvestor/goaccess/html:/srv/report"
depends_on:
- http