-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
61 lines (57 loc) · 1.2 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
services:
db:
image: postgres
ports:
- "8001:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_MULTIPLE_DATABASES: 'hxat,catchpy'
volumes:
- postgres_data:/var/lib/postgresql/data/
- ./pg-init-scripts:/docker-entrypoint-initdb.d
redis:
image: redis
ports:
- "8002:6379"
hxat:
build:
context: .
image: hx/hxat:dev
command: ["./wait-for-it.sh", "db:5432", "--", "./docker_entrypoint.sh"]
volumes:
- .:/hxat
ports:
- "8000:8000"
depends_on:
- db
- redis
environment:
HXAT_DOTENV_PATH: "/hxat/docker_dotenv.env"
networks:
default:
public:
aliases:
- hxat.localhost
catchpy:
build:
context: ../catchpy
image: hx/catchpy:dev
command: ["./wait-for-it.sh", "db:5432", "--", "./docker_entrypoint.sh"]
volumes:
- ../catchpy:/catchpy
ports:
- "9000:8000"
depends_on:
- db
environment:
CATCHPY_DOTENV_PATH: "/catchpy/docker_dotenv.env"
networks:
default:
public:
aliases:
- catchpy.localhost
volumes:
postgres_data:
networks:
public: