-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
122 lines (114 loc) · 2.65 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# NOTE - A docker-compose.dev.yml for DEVELOPMENT
version: "3.8"
# SECTION : SERVICES
services:
backend_dev:
container_name: back_dev_con
build:
context: ./backend
dockerfile: Dockerfile.dev
depends_on:
database_dev:
condition: service_healthy
environment:
- PGDATABASE=${PGDATABASE}
- PGPASSWORD=${PGPASSWORD}
- PGUSER=${PGUSER}
- PGHOST=${PGHOST}
- PGPORT=${PGPORT}
expose:
- "3000"
init: true
networks:
development:
ipv4_address: 172.18.0.2
ports:
- "3000:3000"
volumes:
- ./:/workspaces/:cached
- /var/run/docker.sock:/var/run/docker-host.sock
# frontend_dev:
# container_name: front_dev_con
# build:
# context: ./frontend
# dockerfile: Dockerfile.dev
# entrypoint: [sleep, infinity]
# init: true
# networks:
# development:
# ipv4_address: 172.18.0.3
# ports:
# - "4242:4242"
# volumes:
# - ./:/workspaces/:cached
# - /var/run/docker.sock:/var/run/docker-host.sock
database_dev:
container_name: db_dev_con
build:
context: ./database
dockerfile: Dockerfile.dev
environment:
- PGDATABASE=${PGDATABASE}
- PGPASSWORD=${PGPASSWORD}
- PGUSER=${PGUSER}
- PGPORT=${PGPORT}
expose:
- "5432"
init: true
networks:
development:
ipv4_address: 172.18.0.4
volumes:
- ./:/workspaces/:cached
- /var/run/docker.sock:/var/run/docker-host.sock
# Database Volume
- pgdata_dev:/var/lib/postgresql/data/
# NOTE : PostgreSQL GUI tools
pgadmin_dev:
container_name: pgadmin_dev_con
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
- PGADMIN_LISTEN_PORT=${PGADMIN_LISTEN_PORT}
image: dpage/pgadmin4
init: true
networks:
development:
ipv4_address: 172.18.0.5
ports:
- "5050:5050"
pgweb:
container_name: pgweb_dev_con
depends_on:
database_dev:
condition: service_healthy
entrypoint:
- /usr/bin/pgweb
- --bind=172.18.0.6
- --host=${PGHOST}
- --ssl=disable
- --user=${PGUSER}
- --pass=${PGPASSWORD}
image: sosedoff/pgweb
init: true
networks:
development:
ipv4_address: 172.18.0.6
ports:
- "8081:8081"
# SECTION : NETWORKS
networks:
development:
ipam:
config:
- subnet: 172.18.0.0/24
gateway: 172.18.0.1
volumes:
pgdata_dev:
driver: local
driver_opts:
type: none
device: ${PGDATA_DIR}
o: bind
# SECTION : VOLUMES
# volumes: