-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
36 lines (36 loc) · 991 Bytes
/
docker-compose.yaml
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
version: '3.1'
services:
backend:
build: ./backend
command: ["wait-for-it.sh", "devbox:8080", "--strict", "--timeout=0", "--", "pipenv", "run", "gunicorn", "main:create_app", "--worker-class", "aiohttp.worker.GunicornWebWorker", "-b", "0.0.0.0:8081", "--reload"]
depends_on:
- devbox
links:
- devbox
env_file:
- .env
volumes:
- ./backend:/app:cached
- ./config:/var/config:cached
- ./wait-for-it.sh:/usr/local/bin/wait-for-it.sh:cached
# Colored logs
tty: true
devbox:
image: "bedasoftware/devbox:0.5.0-RC1-2fa"
depends_on:
- devbox-db
links:
- "devbox-db:database"
ports:
- "8080:8080"
env_file:
- .env
volumes:
- ./wait-for-it.sh:/usr/local/bin/wait-for-it.sh:cached
- ./config:/var/config:cached
devbox-db:
image: "aidbox/db:11.8.6"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: devbox