-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathdocker-compose.yaml
69 lines (69 loc) · 1.65 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
version: '3.8'
services:
db:
image: postgres:16-bullseye@sha256:7174d2a352ad138906e3dc4a28a5d11b5a158180e9bff80beed8c8cc346f874c
env_file:
- ./.env.example
environment:
POSTGRES_DB: ${SQL_DATABASE:-audit}
POSTGRES_USER: ${SQL_USER:-postgres}
POSTGRES_PASSWORD: ${SQL_PASSWORD:-postgres}
volumes:
- db-data:/var/lib/postgresql/data
expose:
- ${SQL_PORT:-5432}
restart: on-failure
web:
build:
context: ./
image: mobile_audit
env_file:
- ./.env.example
entrypoint: [ '/web_entrypoint.sh' ]
volumes:
- .:/app
expose:
- "8000"
depends_on:
- db
restart: on-failure
nginx:
image: nginx:stable-bullseye@sha256:ee187e563496b690edaab157f89db924cd35fab42631309f4d62957baecf7d6c
ports:
- "8888:8888"
volumes:
- .:/app
- ./nginx/app.conf:/etc/nginx/conf.d/app.conf
- ./nginx/logs:/var/log/nginx
depends_on:
- web
restart: on-failure
rabbitmq:
image: rabbitmq:3.13.0-management@sha256:ba406c7daaef53b59c92a13db37a27d0425579a40c59266d10022a40a8ba7242
env_file:
- ./.env.example
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER:-guest}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS:-guest}
volumes:
- ./rabbitmq/logs/:/var/log/rabbitmq/
expose:
- "5672"
depends_on:
- web
restart: on-failure
worker:
image: mobile_audit
env_file:
- ./.env.example
entrypoint: [ '/worker_entrypoint.sh' ]
volumes:
- .:/app
links:
- rabbitmq
- web
depends_on:
- rabbitmq
restart: on-failure
volumes:
db-data: