-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
68 lines (65 loc) · 1.4 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
services:
backend:
container_name: spring_container
build: backend/app/
depends_on:
- db
- dind
ports:
- 8080:8080
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/postgres
- SPRING_DATASOURCE_USERNAME=${PGU}
- SPRING_DATASOURCE_PASSWORD=${PGP}
restart: always
volumes:
- ./backend/app/data:/data:rw
networks:
docker_network:
ipv4_address: 10.5.0.9
db:
container_name: db
image: 'postgres:latest'
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${PGU}
- POSTGRES_PASSWORD=${PGP}
- POSTGRES_DB=postgres
ports:
- 5432:5432
networks:
docker_network:
ipv4_address: 10.5.0.8
dind:
container_name: dind
image: docker:dind
privileged: true
ports:
- 2375:2375
networks:
docker_network:
ipv4_address: 10.5.0.4
pgadmin:
container_name: container-pgadmin
image: dpage/pgadmin4
depends_on:
- db
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
restart: unless-stopped
networks:
docker_network:
ipv4_address: 10.5.0.13
volumes:
postgres-data:
networks:
docker_network:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1