forked from SnailyCAD/snaily-cadv4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.docker-compose.yml
54 lines (51 loc) · 1.07 KB
/
production.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
50
51
52
53
54
services:
postgres:
container_name: "snaily-cad-postgres"
image: postgres:latest
environment:
POSTGRES_PORT: ${DB_PORT}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "${DB_PORT}:5432"
networks:
- cad_web
volumes:
- ./.data:/var/lib/postgresql/data
restart: unless-stopped
api:
container_name: "snaily-cad-api"
build:
context: .
dockerfile: ./Dockerfile
target: api
ports:
- "${PORT_API}:${PORT_API}"
expose:
- ${PORT_API}
depends_on:
- postgres
networks:
- cad_web
restart: always
volumes:
- ./apps/api/public:/snailycad/apps/api/public
client:
container_name: "snaily-cad-client"
build:
context: .
dockerfile: ./Dockerfile
target: client
ports:
- "${PORT_CLIENT}:${PORT_CLIENT}"
expose:
- ${PORT_CLIENT}
depends_on:
- postgres
networks:
- cad_web
restart: always
networks:
cad_web:
external: true