-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
136 lines (132 loc) · 2.86 KB
/
docker-compose.yml
File metadata and controls
136 lines (132 loc) · 2.86 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
version: "3"
services:
starter:
command: python start.py
restart: unless-stopped
build: .
image: instagramtools/manager
volumes:
- ./src:/app
ports:
- 8765:8765
depends_on:
- postgres
links:
- postgres:postgres
environment:
- DEBUG=True
- P_USER=docker
- SECRET_KEY=5(15ds+i2+%ik6z&!yer+ga9m=e%jcqiz_5wszg)r-z!2--b2d
- DB_NAME=postgres
- DB_USER=postgres
- DB_PASS=postgres
- DB_SERVICE=postgres
- DB_PORT=5432
- MANAGER_IP=localhost
# env_file:
# - .env/.bot-manager.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
api:
image: instagramtools/api
ports:
- "8000:8000"
depends_on:
- postgres
- manager
links:
- postgres:postgres
- manager:manager
environment:
- DEBUG=False
- DB_SERVICE=postgres
- DB_PORT=5432
- APP_BOT_GATEWAY=http://manager:8765
- 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
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
postgres:
image: postgres:latest
volumes:
- pgs_data:/var/lib/postgresql
ports:
- 5432:5432
environment:
- DB_NAME=postgres
- DB_USER=postgres
- DB_PASS=postgres
web:
image: instagramtools/web
environment:
- PYTHONUNBUFFERED=0
depends_on:
- selenium
volumes:
- ./logs:/code/logs
selenium:
image: selenium/standalone-chrome
ports:
- 5900:5900
volumes:
pgs_data:
log_data: