forked from SnailyCAD/snaily-cadv4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduction.docker-compose.yml
More file actions
65 lines (59 loc) 路 1.11 KB
/
Copy pathproduction.docker-compose.yml
File metadata and controls
65 lines (59 loc) 路 1.11 KB
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
55
56
57
58
59
60
61
62
63
64
65
version: "3.9"
services:
postgres:
container_name: "snaily-cad-postgres"
image: postgres
env_file:
- .env
ports:
- "5433:5432"
networks:
- cad_web
volumes:
- ./.data:/var/lib/postgresql/data
restart: unless-stopped
api:
container_name: "snaily-cad-api"
user: node
image: node:16
command: "yarn workspace @snailycad/api start"
ports:
- "8080:8080"
expose:
- 8080
volumes:
- .:/srv/api
env_file:
- .env
working_dir: /srv/api
depends_on:
- postgres
environment:
NODE_ENV: production
networks:
- cad_web
restart: unless-stopped
client:
container_name: "snaily-cad-client"
user: node
image: node:16
command: "yarn workspace @snailycad/client start"
ports:
- "3000:3000"
expose:
- 3000
volumes:
- .:/srv/client
env_file:
- .env
environment:
NODE_ENV: production
working_dir: /srv/client
depends_on:
- api
networks:
- cad_web
restart: unless-stopped
networks:
cad_web:
external: true