-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
81 lines (74 loc) · 1.47 KB
/
docker-compose.override.yml
File metadata and controls
81 lines (74 loc) · 1.47 KB
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
services:
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
networks:
- internal
- external
db:
image: postgres:15
container_name: db_test
ports:
- "5435:5432"
volumes:
- postgres_test_data:/var/lib/postgresql/data
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=smartify
restart: always
networks:
- internal
- external
mongo:
image: mongo:7.0
container_name: mongo_test
ports:
- "27019:27017"
volumes:
- mongo_test_data:/data/db
- ./database:/docker-entrypoint-initdb.d
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
- MONGO_INITDB_DATABASE=smartify
restart: always
networks:
- internal
- external
backend:
container_name: backend_test
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- db
- mongo
- mailhog
env_file:
- .env.test
restart: always
networks:
- external
- internal
# frontend:
# build: ./frontend
# container_name: frontend
# restart: always
#
# ml:
# build: ./ml
# container_name: ml
# restart: always
networks:
internal:
internal: true
external:
volumes:
postgres_test_data:
mongo_test_data: