-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (58 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
63 lines (58 loc) · 1.11 KB
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: '3'
services:
web:
build:
context: ./docker
dockerfile: ./ui.Dockerfile
args:
- hal_version=master
ports:
- 80:8000
links:
- postgres:postgres
- redis:redis
depends_on:
- postgres
- redis
environment:
DB_DRIVER: pgsql
DB_HOST: postgres
DB_PORT: 5432
DB_USERNAME: hal
DB_PASSWORD: hal
DB_DATABASE: hal
# APP_URL: http://hal.localhost
# APP_SECRET: 64-char hex
# REDIS_HOST: redis
agent:
build:
context: ./docker
dockerfile: ./agent.Dockerfile
args:
- hal_version=master
ports:
- 4646
links:
- postgres:postgres
- redis:redis
- web:web
depends_on:
- postgres
- redis
volumes:
- /var/lib/nomad
restart: always
postgres:
image: postgres:9.6.2-alpine
volumes:
- /var/lib/postgresql/data
restart: always
environment:
POSTGRES_USER: hal
POSTGRES_PASSWORD: hal
POSTGRES_DB: hal
redis:
image: redis:4.0.10-alpine
volumes:
- /data
restart: always