-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 808 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 808 Bytes
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
version: '3'
services:
postgres:
container_name: postgres
image: postgres:latest
environment:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
POSTGRES_DB: myuser
ports:
- 5432:5432
volumes:
- ./data:/var/lib/postgresql/data
networks:
- mynetwork
redis:
image: redis:7.0.11
ports:
- '6379:6379'
networks:
- mynetwork
configserver:
container_name: configserver
image: joseph24x7/configserver:latest
ports:
- 8888:8888
depends_on:
- postgres
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/myuser
SPRING_DATASOURCE_USERNAME: myuser
SPRING_DATASOURCE_PASSWORD: mypassword
networks:
- mynetwork
networks:
mynetwork:
driver: bridge