-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 939 Bytes
/
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
services:
frontend:
build:
dockerfile: frontend/Dockerfile
expose:
- 3000/tcp
volumes:
- ./frontend:/app
- node_modules:/home/pnpm
- /app/node_modules/
backend:
build:
dockerfile: backend/Dockerfile
expose:
- 3000/tcp
volumes:
- ./backend:/app
- node_modules:/home/pnpm
- /app/node_modules/
- public_data:/upload
db:
image: postgres
restart: always
env_file:
- backend/.env
expose:
- 5432/tcp
volumes:
- db-data:/var/lib/postgresql/data
- type: bind
source: ./backend/scripts
target: /scripts
caddy:
image: caddy:2.7.6
ports:
- 3000:80/tcp
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- public_data:/upload
adminer:
image: adminer
restart: always
ports:
- 3001:8080/tcp
volumes:
db-data:
node_modules:
public_data: