-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yaml
45 lines (44 loc) · 867 Bytes
/
compose.yaml
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
services:
frontend:
build:
context: ./client/.
args:
- PUBLIC_BACKEND_URL="${PUBLIC_BACKEND_URL}"
restart: unless-stopped
ports:
- "4321:4321"
env_file:
- .env
container_name: hyperslice-frontend
api:
ports:
- "3001:3001"
build: ./api/.
restart: unless-stopped
depends_on:
- db
networks:
- hyperslice
env_file:
- .env
container_name: hyperslice-api
db:
image: postgres:latest
restart: unless-stopped
shm_size: 256mb
ports:
- "5432:5432"
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- hyperslice-db:/var/lib/postgresql/data
env_file:
- .env
container_name: hyperslice-db
networks:
- hyperslice
volumes:
hyperslice-db:
driver: local
networks:
hyperslice:
driver: bridge