-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (101 loc) · 2.24 KB
/
docker-compose.yml
File metadata and controls
105 lines (101 loc) · 2.24 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
version: "3"
services:
postgres:
image: postgres:11.1-alpine
volumes:
- pgs_data:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
- DB_NAME=postgres
- DB_USER=postgres
- DB_PASS=postgres
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
- DB_NAME=postgres
- DB_USER=postgres
- DB_PASS=postgres
- SECRET_KEY=SECRET_KEY
- SECURITY_PASSWORD_SALT=SECURITY_PASSWORD_SALT
env_file:
- .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
- DB_NAME=postgres
- DB_USER=postgres
- DB_PASS=postgres
- SECRET_KEY=SECRET_KEY
- SECURITY_PASSWORD_SALT=SECURITY_PASSWORD_SALT
env_file:
- .env/.mail.env
nginx:
image: instagramtools/user-interface
ports:
- "80:80"
- "443:443"
environment:
- DEBUG=off
- APP_API_PLACEHOLDER=/api
- APP_API_GATEWAY=http://api:8000
- APP_BOT_PLACEHOLDER=/bot
- APP_BOT_GATEWAY=http://manager:8765
- PAYMENT_PLACEHOLDER=/pay
- PAYMENT_GATEWAY=http://payment-manager:7000
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
- DB_NAME=postgres
- DB_USER=postgres
- DB_PASS=postgres
- STRIPE_SECRET_KEY=TEST
mailserver:
image: gott50/mailserver
ports:
- "7070:7070"
environment:
- DEBUG=False
env_file:
- .env/.mail.env
volumes:
pgs_data: