-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
45 lines (41 loc) · 1011 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
version: "3"
services:
caddy:
image: caddy:2-alpine
ports:
- 127.0.0.1:8000:8000
volumes:
- ./app/Caddyfile:/etc/caddy/Caddyfile:ro
app:
build: app
ports:
- 127.0.0.1:8080:8080
environment:
DOCKER_HOST: http://docker:2376
DOCKER_CERT_PATH: /certs/client
DOCKER_TLS_VERIFY: 1
# See app/config.toml as well
volumes:
- docker_certs:/certs
- ./app:/app
frontend:
build: app/frontend
ports:
- 127.0.0.1:3000:3000
volumes:
- ./app/frontend/components:/app/components
- ./app/frontend/pages:/app/pages
- ./app/frontend/public:/app/public
- ./app/frontend/styles:/app/styles
- ./app/frontend/utils:/app/utils
docker:
image: docker:24-dind-rootless
privileged: true
environment:
DOCKER_HOST: unix:///run/user/1000/docker.sock
DOCKER_TLS_CERT_DIR: /certs
volumes:
- docker_certs:/certs
- ./sandbox/docker:/sandbox
volumes:
docker_certs: