forked from testdrivenio/openci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-web-prod.yml
56 lines (50 loc) · 1.14 KB
/
docker-compose-web-prod.yml
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
version: '3.5'
services:
web:
image: web
build:
context: ./services/web
dockerfile: Dockerfile
ports:
- 5002:5000
environment:
- APP_NAME=OpenCI
- FLASK_DEBUG=1
- PYTHONUNBUFFERED=0
- APP_SETTINGS=project.config.ProductionConfig
- DATABASE_URL=postgres://postgres:postgres@web-db:5432/web_dev
- DATABASE_TEST_URL=postgres://postgres:postgres@web-db:5432/web_test
- SECRET_KEY=change_me_in_prod
- OPENFAAS_URL=http://104.131.75.55
depends_on:
- web-db
web-db:
image: web-db
build:
context: ./services/db
dockerfile: Dockerfile
ports:
- 5435:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
web-nginx:
image: web-nginx
build:
context: ./services/nginx
dockerfile: Dockerfile
restart: always
ports:
- 80:80
depends_on:
- web
web-worker:
image: web
environment:
- APP_SETTINGS=project.config.DevelopmentConfig
depends_on:
- web-redis
- web
command: python manage.py run_worker
web-redis:
image: redis:3.2.11