blob: 47a18c7507851dfd1da4f513b1cfebdd1376815b (
plain)
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
73
|
---
# Needs a Docker Compose supporting the 3.4 version onwards, such as the one
# from Debian bullseye-backports.
version: '3.4'
services:
compiler:
image: "bookup/compiler:0.0.1"
build:
context: .
target: compiler
dockerfile: Dockerfile
args:
- CONTAINER_UID=${CONTAINER_UID:-1000}
- CONTAINER_GID=${CONTAINER_GID:-1000}
volumes:
- .:/srv/shared
entrypoint: "make -C /srv/shared"
restart: "no"
tester:
image: "bookup/compiler:0.0.1"
build:
context: .
target: compiler
dockerfile: Dockerfile
args:
- CONTAINER_UID=${CONTAINER_UID:-1000}
- CONTAINER_GID=${CONTAINER_GID:-1000}
volumes:
- .:/srv/shared
entrypoint: "make -C /srv/shared tests"
restart: "no"
site:
image: "bookup/site:0.0.1"
build:
context: .
target: site
dockerfile: Dockerfile
volumes:
- .:/srv/shared
ports:
- 80:80
entrypoint: "apache2ctl -DFOREGROUND"
tor:
image: "bookup/tor:0.0.1"
build:
context: .
target: tor
dockerfile: Dockerfile
volumes:
- tor:/var/lib/tor
entrypoint: "/usr/bin/tor -f /etc/tor/torrc"
volumes:
tor: {}
|