-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 833 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (37 loc) · 833 Bytes
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
version: '3.8'
networks:
e-site:
ipam:
config:
- subnet: 10.10.0.0/16
gateway: 10.10.0.1
services:
backend:
container_name: e-site-backend
build:
context: backend
args:
BACKEND_DIR: ${BACKEND_DIR}
volumes:
- /etc/localtime:/etc/localtime:ro
- ./backend/store/:${BACKEND_DIR}/store/
networks:
e-site:
ipv4_address: 10.10.1.1
ports: # host:container
- "10100:10100"
frontend:
image: caddy:2.6.2
container_name: e-site-frontend
volumes:
- /etc/localtime:/etc/localtime:ro
- ${PWD}/frontend/dist:/root/dist
- ${PWD}/frontend/caddy/Caddyfile:/etc/caddy/Caddyfile
networks:
e-site:
ipv4_address: 10.10.2.1
ports:
- "80:80"
- "443:443"
depends_on:
- backend