-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
94 lines (87 loc) · 1.98 KB
/
docker-compose.yaml
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
version: "3"
services:
frontend:
image: angular_build
build:
context: git/adc-broker-frontend/
dockerfile: Dockerfile
container_name: angular-build
environment:
- STATIC_FILES_DIRS=/static/
volumes:
- static_files:/static/
networks:
- adc-backend
db:
image: postgres:14.1-alpine
container_name: db
volumes:
- /data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
networks:
- adc-backend
broker:
image: artemis_broker
container_name: broker
build:
context: git/adc-broker-backend/artemis_broker/
dockerfile: Dockerfile
ports:
- "5771:5771"
- "8161:8161"
volumes:
- ./git/adc-broker-backend/certificates/certs/:/certs
environment:
- AMQ_USER=admin
- AMQ_PASSWORD=admin
networks:
- adc-backend
web:
image: adc_back
build:
context: git/adc-broker-backend/
dockerfile: Dockerfile
container_name: adc-back
command: gunicorn adc_backend.wsgi:application --bind 0.0.0.0:8000
volumes:
- static_files:/static
- ./git/adc-broker-backend/certificates/certs/:/certs
expose:
- 8000
environment:
- AMQP_BROKER_HOST=broker
- AMQP_BROKER_ADMIN=admin
- AMQP_BROKER_ADMIN_PASSWORD=admin
- DATABASE_HOST=db
- AMQPS_CERTIFICATES_DIR=/certs/
- STATIC_FILES_DIRS=/static/
depends_on:
- frontend
- db
- broker
networks:
- adc-backend
adc-frontend:
image: nginx:stable-alpine
container_name: adc-frontend
ports:
- '80:9080'
- '443:9443'
restart: unless-stopped
volumes:
- static_files:/home/app/web/staticfiles
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/ssl:/etc/nginx/ssl
depends_on:
- web
networks:
- adc-backend
networks:
adc-backend:
driver: bridge
volumes:
static_files:
driver: local