forked from archzfs/archzfs-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (60 loc) · 1.41 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
version: '2'
services:
master:
image: archzfs-master
build: ./master
restart: always
env_file:
- master/db.env
- conf.env
links:
- db
depends_on:
- db
ports:
- "8080:8080"
db:
image: "postgres:9.4"
restart: always
env_file:
- master/db.env
volumes:
- ./cache/postgres-data:/var/lib/postgresql/data
expose:
- 5432
# pacman-cache:
# image: archzfs-pacman-cache
# build: ./pacman-cache
# restart: always
# volumes:
# - ./cache/pacman:/srv/http/pacman-cache:rw
# expose:
# - 8080
worker:
image: archzfs-worker
build: ./worker
environment:
- WORKER_NAME=archzfs-worker
restart: always
privileged: true
tmpfs:
- /run
- /tmp
links:
- master
deploy:
image: archzfs-deploy
build: ./deploy
environment:
- WORKER_NAME=archzfs-deploy
env_file:
- conf.env
restart: always
privileged: true
tmpfs:
- /run
- /tmp
links:
- master
depends_on:
- worker