-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
59 lines (56 loc) · 1.16 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
version: '3.3'
services:
dockerize-devbox:
image: jwilder/dockerize
command: dockerize -wait ${AIDBOX_URL}/__healthcheck -timeout 300s
depends_on:
- devbox
links:
- devbox
dockerize-app:
image: jwilder/dockerize
command: dockerize -wait ${AIDBOX_URL}/app-healthcheck -timeout 300s
depends_on:
- devbox
links:
- devbox
app:
build:
context: .
dockerfile: Dockerfile.node-app.dev
depends_on:
- 'devbox'
links:
- 'devbox'
ports:
- '${APP_PORT}:${APP_PORT}'
env_file:
- .env
volumes:
- .:/app
# Colored logs
tty: true
devbox:
image: '${AIDBOX_IMAGE}'
depends_on:
- 'devbox-db'
links:
- 'devbox-db:database'
ports:
- '${AIDBOX_PORT}:${AIDBOX_PORT}'
volumes:
- './aidbox-project:/aidbox-project'
env_file:
- .env
environment:
PGHOST: database
devbox-db:
image: '${PGIMAGE}'
ports:
- '${PGHOSTPORT}:${PGPORT}'
volumes:
- './pgdata:/data'
environment:
POSTGRES_USER: '${PGUSER}'
POSTGRES_PASSWORD: '${PGPASSWORD}'
POSTGRES_DB: '${PGDATABASE}'