-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (62 loc) · 1.3 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
version: '3.8'
services:
Datastore:
image: postgres:16.2
container_name: datastore
environment:
POSTGRES_PASSWORD: "someSuperSecurePwd"
POSTGRES_DB: "va"
ports:
- "5432:5432"
networks:
data_network:
aliases:
- datastore
Backend:
image: backend:latest
container_name: backend
environment:
SPRING_CONFIG_LOCATION: "/backend/application.yml"
depends_on:
- Datastore
- MailHog
build:
context: ./backend
dockerfile: Dockerfile
target: run
ports:
- "8080:8080"
volumes:
- ./backend/src/main/resources/application.yml:/backend/application.yml
networks:
data_network:
mail_network:
api_network:
aliases:
- backend
MailHog:
image: mailhog/mailhog:v1.0.1
container_name: mailhog
ports:
- "8025:8025"
networks:
mail_network:
aliases:
- mailhog
WebFrontend:
image: webfrontend:latest
container_name: webfrontend
build:
context: ./web-frontend
dockerfile: Dockerfile
target: run
ports:
- "9090:8080"
volumes:
- ./web-frontend/nginx.conf:/etc/nginx/conf.d/default.conf:ro
networks:
api_network:
networks:
data_network:
mail_network:
api_network: