-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
65 lines (60 loc) · 1.44 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
services:
garage-service-backend:
container_name: garage-backend
image: viepovsky/car-service-garage-backend:latest
environment:
- CAR_SERVICE_GARAGE_SECRET_KEY=840fac1f38c240c3a949d2b7bcebd92195931b5ebb12f5a6dc121303c81ee086
- SPRING_PROFILES_ACTIVE=docker
ports:
- 8080:8080
networks:
- garage-service
depends_on:
- db_postgres
restart: unless-stopped
garage-service-frontend:
container_name: garage-frontend
image: viepovsky/car-service-garage-frontend:latest
environment:
- SPRING_PROFILES_ACTIVE=docker
ports:
- 8081:8081
networks:
- garage-service
depends_on:
- garage-service-backend
restart: unless-stopped
db_postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: viepovsky
POSTGRES_PASSWORD: viepovsky
POSTGRES_DB: garage-service
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
networks:
- garage-service
restart: unless-stopped
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- 5050:80
networks:
- garage-service
depends_on:
- db_postgres
restart: unless-stopped
networks:
garage-service:
driver: bridge
volumes:
postgres:
pgadmin: