-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
49 lines (47 loc) · 1 KB
/
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
49
version: "3.7"
networks:
phasmonet:
services:
phasmodb:
container_name: phasmodb
image: phasmodb:staging
depends_on:
- postgres
restart: unless-stopped
networks:
- phasmonet
environment:
- PGHOST=postgres
- PGUSER=phasmouser
- PGPASSWORD=phasmopass
- PGDATABASE=phasmo
- PGPORT=5432
ports:
- 3001:3001
phasmo:
container_name: phasmofrontend
image: phasmoapp:staging
networks:
- phasmonet
depends_on:
- postgres
restart: unless-stopped
ports:
- 3000:3000
postgres:
container_name: postgres
image: postgres:13-alpine
restart: unless-stopped
networks:
- phasmonet
environment:
- POSTGRES_USER=phasmouser
- POSTGRES_PASSWORD=phasmopass
- POSTGRES_DB=phasmo
volumes:
- ./Database/.data:/var/lib/postgresql/data
- ./Database/phasmo-schema.sql:/docker-entrypoint-initdb.d/phasmo-schema.sql
expose:
- 5432
ports:
- 5432:5432