-
Notifications
You must be signed in to change notification settings - Fork 49
/
docker-compose.yml
49 lines (46 loc) · 1.01 KB
/
docker-compose.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
---
services:
postgres:
build:
context: tools/dev_postgres
dockerfile: Dockerfile
container_name: dab_postgres
ports:
- "55432:5432"
test_app:
build:
context: .
working_dir: /src
command: './test_app/scripts/container_startup_uwsgi.sh'
volumes:
- '.:/src:z'
ports:
- '8000:8000'
depends_on:
postgres:
condition: service_healthy
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_USER: dab
DB_PASSWORD: dabing
# This is the intermediate application reverse proxy without ssl
nginx:
image: "nginx:latest"
volumes:
- './compose/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:z'
ports:
- '80:80'
depends_on:
- test_app
# This is the ssl terminated "ingress" reverse proxy
ingress:
build: ./compose/ingress
command: './entrypoint.sh'
volumes:
- './compose/ingress/certs:/etc/nginx/ssl:z'
ports:
- "443:443"
depends_on:
- test_app
- nginx