-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
53 lines (50 loc) · 1.01 KB
/
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
50
51
52
53
services:
web:
image: web
build:
context: ./web
dockerfile: ./dev.Dockerfile # Comment out to use prod Dockerfile
additional_contexts:
- env=.
develop:
watch:
- action: rebuild
path: ./package.json
- action: sync
path: ./web
target: /srv
container_name: web
env_file: .env
ports:
- 3000:3000
fabdb:
image: fabdb
build: .
develop:
watch:
- action: rebuild
path: .
ignore:
- web
container_name: fabdb
depends_on:
- psql
env_file: .env
environment:
- DB_URL=psql
ports:
- 8080:8080
psql:
image: postgres:17-alpine
restart: unless-stopped
container_name: postgres
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- "${DB_PORT}:5432"
volumes:
- psql_volume:/var/lib/postgresql/data
volumes:
psql_volume: