-
Notifications
You must be signed in to change notification settings - Fork 72
/
docker-compose.yml
47 lines (46 loc) · 1.06 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
---
# To build for M1:
# BUILD_ARCH=arm64 docker-compose build
# To run:
# docker-compose down -v
# BUILD_ARCH=arm64 docker-compose up runcmd caddy -V --remove-orphans
# http://localhost:8181/
version: '3.9'
services:
cmd:
build:
context: cmdchallenge
dockerfile: Dockerfile-cmd
args:
BUILD_PLATFORM: linux/${BUILD_ARCH:-amd64}
image: cmd:${BUILD_ARCH:-amd64}
cmd-no-bin:
build:
context: cmdchallenge
dockerfile: Dockerfile-cmd-no-bin
args:
BUILD_PLATFORM: linux/${BUILD_ARCH:-amd64}
image: cmd-no-bin:${BUILD_ARCH:-amd64}
runcmd:
build:
context: .
dockerfile: Dockerfile
args:
BUILD_PLATFORM: linux/${BUILD_ARCH:-amd64}
image: runcmd:${BUILD_ARCH:-amd64}
environment:
- CMD_SET_RATE_LIMIT=true
volumes:
- dist:/app/dist
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 8181:8181
caddy:
image: caddy
volumes:
- dist:/app/dist
- ./Caddyfile:/etc/caddy/Caddyfile
ports:
- 8100:80
volumes:
dist: