generated from akmamun/gin-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-dev.yml
55 lines (50 loc) · 1.07 KB
/
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
49
50
51
52
53
54
version: "3.8"
services:
postgres_db:
container_name: dev_pg_db
image: postgres:13-alpine
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
networks:
- chi_server
#
# pgadmin:
# container_name: pgadmin4_container
# image: dpage/pgadmin4
# restart: always
# ports:
# - "5050:80"
# environment:
# - PGADMIN_DEFAULT_EMAIL=admin@admin.com
# - 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
networks:
- chi_server
volumes:
dev_postgres_data:
pgadmin_data:
networks:
chi_server:
driver: bridge