-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
111 lines (100 loc) · 2.57 KB
/
docker-compose.dev.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: "3.9"
services:
backend:
build: ./services/backend
container_name: aqua-backend
restart: unless-stopped
command: ["python", "./src/entrypoint/presentation/fastapi"]
volumes:
- ./services/backend:/aqua
networks:
- private-network
environment:
AUTH_DEV: true
AUTH_POSTGRES_DATABASE: auth
AUTH_POSTGRES_USERNAME: auth
AUTH_POSTGRES_PASSWORD: auth
AUTH_POSTGRES_HOST: auth-postgres
AUTH_POSTGRES_PORT: 5432
AUTH_POSTGRES_ECHO: true
AQUA_DEV: true
AQUA_MONGO_URI: mongodb://aqua-mongo1,aqua-mongo2,aqua-mongo3/?replicaSet=aquaSet
ENTRYPOINT_DEV: true
depends_on:
- aqua-mongo1
- aqua-mongo2
- aqua-mongo3
- auth-postgres
frontend:
build: ./services/frontend
container_name: aqua-frontend
restart: unless-stopped
volumes:
- ./services/frontend:/aqua
depends_on:
- backend
nginx:
image: nginx:stable-alpine3.19-perl
container_name: aqua-nginx
restart: unless-stopped
volumes:
- ./nginx.dev.conf:/etc/nginx/nginx.conf
- ./services/frontend/static:/aqua/static
networks:
- private-network
ports:
- 80:80
depends_on:
- backend
- frontend
aqua-mongo1:
image: mongo:8.0.3-noble
container_name: aqua-mongo1
restart: unless-stopped
command: --replSet aquaSet
volumes:
- aqua-mongo1-data:/data/db
- ./services/backend/scripts/aqua-mongo1:/scripts
networks:
- private-network
depends_on:
- aqua-mongo2
- aqua-mongo3
aqua-mongo2:
image: mongo:8.0.3-noble
container_name: aqua-mongo2
restart: unless-stopped
command: --replSet aquaSet
volumes:
- aqua-mongo2-data:/data/db
networks:
- private-network
aqua-mongo3:
image: mongo:8.0.3-noble
container_name: aqua-mongo3
restart: unless-stopped
command: --replSet aquaSet
volumes:
- aqua-mongo3-data:/data/db
networks:
- private-network
auth-postgres:
image: postgres:16.3-alpine3.19
container_name: auth-postgres
restart: unless-stopped
volumes:
- auth-postgres-data:/var/lib/postgresql/data
networks:
- private-network
environment:
POSTGRES_DB: auth
POSTGRES_USER: auth
POSTGRES_PASSWORD: auth
networks:
private-network:
driver: bridge
volumes:
aqua-mongo1-data: null
aqua-mongo2-data: null
aqua-mongo3-data: null
auth-postgres-data: null