-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-prod.yml
More file actions
39 lines (35 loc) · 842 Bytes
/
docker-compose-prod.yml
File metadata and controls
39 lines (35 loc) · 842 Bytes
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
version: '3.7'
services:
users:
build:
context: ./services/users
dockerfile: Dockerfileprod
expose:
- 5000
environment:
- FLASK_ENV=production
- APP_SETTINGS=project.config.ProductionConfig
- DATABASE_PROD_URL=postgres://postgres:postgres@users-db:5432/users_prod
- DATABASE_QA_URL=postgres://postgres:postgres@users-db:5432/users_qa
- SECRET_KEY=mysupersecretkey
depends_on:
- users-db
users-db:
build:
context: ./services/users/project/db
dockerfile: Dockerfile
expose:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
nginx:
build:
context: ./services/nginx
dockerfile: Dockerfileprod
restart: always
ports:
- 80:80
depends_on:
- users
- web