-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
48 lines (44 loc) · 1007 Bytes
/
docker-compose.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:
cp-db-dev:
image: postgres:14.3-bullseye
container_name: cp-db-dev
restart: unless-stopped
ports:
- '5432:5432'
user: '${MY_UID}:${MY_GID}'
volumes:
- ./prisma/pg-data:/var/lib/postgresql/data
# only: POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB
environment:
- PGDATA=/var/lib/postgresql/data/data-dev
# private vars
# - POSTGRES_HOSTNAME
# - POSTGRES_PORT
# - POSTGRES_USER
# - POSTGRES_PASSWORD
# - POSTGRES_DB
env_file:
- ./.env.development.local
networks:
- internal-dev
- external-host
adminer-dev:
image: 'adminer:4.8.1-standalone'
container_name: adminer-dev
restart: unless-stopped
ports:
- '8080:8080'
depends_on:
- cp-db-dev
networks:
- internal-dev
- external-host
volumes:
cp-app-dev-node_modules:
cp-app-dev-next:
networks:
internal-dev:
external: false
external-host:
external: true