-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (65 loc) · 1.93 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
services:
dbservice:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=slidetap
brokerservice:
image: rabbitmq:3
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
taskservice:
env_file: .env
environment:
SLIDETAP_STORAGE: /storage
SLIDETAP_DBURI: postgresql://user:password@dbservice:5432/slidetap
SLIDETAP_BROKER_URL: amqp://user:password@brokerservice:5672
SLIDETAP_WEBAPP_URL: https://${SLIDETAP_SERVERNAME}:${SLIDETAP_PORT}
SLIDETAP_TASK_APP: ${SLIDETAP_TASK_APP}
build:
context: ./slidetap-app
dockerfile: dockerfiles/taskservice.Dockerfile
volumes:
- ${SLIDETAP_STORAGE}:/storage:rw
depends_on:
brokerservice:
condition: service_started
dbservice:
condition: service_started
appservice:
env_file: .env
environment:
SLIDETAP_STORAGE: /storage
SLIDETAP_DBURI: postgresql://user:password@dbservice:5432/slidetap
SLIDETAP_WEBAPP_URL: https://${SLIDETAP_SERVERNAME}:${SLIDETAP_PORT}
SLIDETAP_BROKER_URL: amqp://user:password@brokerservice:5672
SLIDETAP_APIPORT: ${SLIDETAP_APIPORT}
SLIDETAP_WEB_APP_CREATOR: ${SLIDETAP_WEB_APP_CREATOR}
build:
context: ./slidetap-app
dockerfile: dockerfiles/appservice.Dockerfile
volumes:
- ${SLIDETAP_STORAGE}:/storage:rw
depends_on:
brokerservice:
condition: service_started
dbservice:
condition: service_started
webserver:
env_file: .env
build:
context: ./slidetap-client
dockerfile: dockerfiles/webserver.Dockerfile
ports:
- ${SLIDETAP_PORT}:${SLIDETAP_PORT}
volumes:
- ${SLIDETAP_SSL_CERTIFICATE_FOLDER}:/certs:ro
depends_on:
appservice:
condition: service_started
volumes:
postgres_data: