-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (29 loc) · 910 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (29 loc) · 910 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
# Use postgres/example user/password credentials
services:
dev_db:
image: postgres
restart: always
env_file: "/home/admin/docker-env/database.env"
# set shared memory limit when using docker compose
shm_size: 128mb
volumes:
- "/home/admin/projects/workspace/dev_database/data:/var/lib/postgresql/data"
- "/home/admin/projects/workspace/dev_database/initscripts:/docker-entrypoint-initdb.d"
# /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
#user: 1000:1000
ports:
- "127.0.0.1:5433:5432"
# or set shared memory limit when deploy via swarm stack
#volumes:
#dev_data:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
#environment:
#POSTGRES_PASSWORD: example
dev_adminer:
image: adminer
restart: always
ports:
- 8086:8080