-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
51 lines (43 loc) · 1.03 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
version: '2.4'
services:
adminer:
image: adminer
restart: always
environment:
ADMINER_DESIGN: 'hydra'
ADMINER_DEFAULT_SERVER: 'postgresql'
ports:
- 8080:8080
networks:
BridgeServer:
ipv4_address: ${IP_AD}
db:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: ${USER}
POSTGRES_PASSWORD: ${PSSWD}
POSTGRES_DB: ${DB}
volumes:
- ./initialization-scripts:/docker-entrypoint-initdb.d/
ports:
- 5432:5432
networks:
BridgeServer:
ipv4_address: ${IP_POST}
##################################################
#
# - You can delete the part below for your usecase
# - As well as the "networks" part in each service
#
##################################################
networks:
BridgeServer:
name: ${NETWORK}
driver: ${DRIVER}
driver_opts:
parent: ${PARENT}
ipam:
config:
- subnet: ${SUBNET}
gateway: ${GATEWAY}