This repository was archived by the owner on Feb 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-stage.yml
More file actions
95 lines (86 loc) · 2.16 KB
/
docker-compose-stage.yml
File metadata and controls
95 lines (86 loc) · 2.16 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
version: '3.7'
services:
supplyit-users:
image: users
build:
context: ./services/users
dockerfile: Dockerfile-stage
expose:
- 5000
environment:
- FLASK_ENV=production
- APP_SETTINGS=project.config.StagingConfig
- DATABASE_URL=postgres://postgres:postgres@supplyit-users-db:5432/users_stage
- DATABASE_TEST_URL=postgres://postgres:postgres@supplyit-users-db:5432/users_test
- SECRET_KEY=my_precious
- REACT_APP_USERS_SERVICE_URL=${REACT_APP_USERS_SERVICE_URL}
- CELERY_BROKER=redis://redis:6379/0
- CELERY_BACKEND=redis://redis:6379/0
depends_on:
- supplyit-users-db
- redis
supplyit-users-db:
build:
context: ./services/users/project/db
dockerfile: Dockerfile
expose:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
client:
container_name: client
build:
context: ./services/client
dockerfile: Dockerfile-stage
args:
- NODE_ENV=production
- REACT_APP_USERS_SERVICE_URL=${REACT_APP_USERS_SERVICE_URL}
expose:
- 80
depends_on:
- supplyit-users
swagger:
build:
context: ./services/swagger
dockerfile: Dockerfile-stage
expose:
- 8080
environment:
- URL=swagger.yml
depends_on:
- supplyit-users
nginx:
build:
context: ./services/nginx
dockerfile: Dockerfile-stage
restart: always
ports:
- 80:80
depends_on:
- supplyit-users
- client
celery:
image: users
command: celery -A project.utils.tasks worker --loglevel=info
environment:
- CELERY_BROKER=redis://redis:6379/0
- CELERY_BACKEND=redis://redis:6379/0
- MAILGUN_API_KEY=${MAILGUN_API_KEY}
- MAILGUN_DOMAIN=${MAILGUN_DOMAIN}
- FROM_TITLE=SUPPLYIT
depends_on:
- supplyit-users
- redis
celery-monitor:
image: users
ports:
- 5555:5555
command: flower -A project.utils.tasks --port=5555 --broker=redis://redis:6379/0
depends_on:
- supplyit-users
- redis
redis:
build:
context: ./services/redis
dockerfile: Dockerfile