-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
72 lines (65 loc) · 1.5 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.5"
networks:
web:
driver: bridge
backend:
driver: bridge
internal: true
services:
caddy:
# see https://hub.docker.com/_/caddy
container_name: caddy
image: "caddy:alpine"
init: true
ports:
- "80:80"
- "443:443"
volumes:
- frontend:/codelab-frontend
- ./Caddyfile:/etc/caddy/Caddyfile
networks:
- web
- backend
depends_on:
- codelab
redis:
container_name: redis
image: "redis:latest"
init: true
ports:
- "6379:6379"
networks:
- backend
frontend:
build:
context: ./frontend
image: codelab-frontend:latest
volumes:
- frontend:/codelab-frontend/dist
codelab:
container_name: codelab
build:
context: ./backend
dockerfile: Dockerfile
image: codelab:latest
init: true
networks:
- backend
depends_on:
- redis
- codebox
environment:
- REDIS_URL=redis://redis:6379
- CODEBOX_URL=http://codebox:8000
codebox:
image: codebox
container_name: codebox
build: https://github.com/andredias/codebox.git#main
ports:
- "8000:8000"
networks:
- backend
init: true
privileged: true
volumes:
frontend: