-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-prod.yml
More file actions
112 lines (107 loc) · 2.15 KB
/
docker-prod.yml
File metadata and controls
112 lines (107 loc) · 2.15 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: "3"
services:
postgres:
image: postgres:11.1-alpine
volumes:
- pgs_data:/var/lib/postgresql/data
env_file:
- .env/.postgres.env
ports:
- 5432:5432
api:
image: instagramtools/api
depends_on:
- postgres
- manager
links:
- postgres:postgres
- manager:manager
environment:
- DEBUG=False
- DB_SERVICE=postgres
- DB_PORT=5432
- APP_BOT_GATEWAY=http://manager:8765
- APP_MAIL_GATEWAY=http://mailserver:7070
env_file:
- .env/.postgres.env
- .env/.api.env
- .env/.mail.env
manager:
image: instagramtools/manager
command: sh start.sh 8765
depends_on:
- postgres
links:
- postgres:postgres
environment:
- DEBUG=False
- DB_SERVICE=postgres
- DB_PORT=5432
- P_USER=ec2-user
env_file:
- .env/.postgres.env
- .env/.api.env
- .env/.manager.env
- .env/.bot-manager.env
starter:
image: instagramtools/manager
command: python start.py
restart: unless-stopped
depends_on:
- postgres
links:
- postgres:postgres
environment:
- DEBUG=False
- DB_SERVICE=postgres
- DB_PORT=5432
- P_USER=ec2-user
env_file:
- .env/.postgres.env
- .env/.api.env
- .env/.manager.env
- .env/.bot-manager.env
nginx:
image: instagramtools/user-interface
ports:
- "80:80"
- "443:443"
environment:
- DEBUG=off
env_file:
- .env/.nginx.env
depends_on:
- api
- payment-manager
- manager
links:
- api:api
- payment-manager:payment-manager
- manager:manager
payment-manager:
image: instagramtools/payment-manager
depends_on:
- postgres
- api
links:
- postgres:postgres
- api:api
ports:
- "7000:7000"
environment:
- DEBUG=False
- DB_SERVICE=postgres
- DB_PORT=5432
env_file:
- .env/.payment-manager.env
- .env/.postgres.env
mailserver:
image: gott50/mailserver
ports:
- "7070:7070"
environment:
- DEBUG=False
env_file:
- .env/.mail.env
volumes:
pgs_data: