-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose-dev.yml
48 lines (44 loc) · 998 Bytes
/
docker-compose-dev.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
version: "3.8"
services:
postgres_db:
container_name: dev_pg_db
image: postgres:13-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${MASTER_DB_USER}
- POSTGRES_PASSWORD=${MASTER_DB_PASSWORD}
- POSTGRES_DB=${MASTER_DB_NAME}
volumes:
- dev_postgres_data:/var/lib/postgresql/data/
restart: always
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
ports:
- "5050:80"
environment:
- PGADMIN_DEFAULT_PASSWORD=root
logging:
driver: none
volumes:
- pgadmin_data:/var/lib/pgadmin
server:
container_name: dev_go_server
build:
context: .
dockerfile: Dockerfile-dev
ports:
- ${SERVER_PORT}:${SERVER_PORT}
depends_on:
- postgres_db
links:
- postgres_db:postgres_db
volumes:
- .:/app
restart: always
volumes:
dev_postgres_data:
pgadmin_data: