forked from thecsw/memeinvestor_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (42 loc) · 1.02 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
version: '3'
services:
bot:
build: .
env_file: .env
restart: on-failure
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: on-failure
command: ["python", "submitter.py"]
api:
build: .
env_file: .env
restart: unless-stopped
command: [".local/bin/gunicorn", "--bind", "0.0.0.0:5000", "--access-logfile", "-", "--error-logfile", "-", "api:app"]
depends_on:
- mysql
http:
build:
context: .
dockerfile: docker/Dockerfile-caddy
env_file: .env
restart: unless-stopped
ports:
- 2015:2015
depends_on:
- api
mysql:
image: mariadb:10.2.15
env_file: .env
restart: unless-stopped