-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (53 loc) · 1.3 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
services:
caddy:
image: caddy:2.7-alpine
ports:
- "80:80"
- "443:443"
- "2019:2019"
volumes:
- ./conf/caddy/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
depends_on:
- costy
- auth
costy:
image: costy-costy
command: sh -c "uvicorn costy.main.web:init_app --host 0.0.0.0 --port 8000 --factory"
env_file:
- conf/costy/.env
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- costy-migrate
costy-migrate:
image: costy-costy
command: sh -c "alembic -c ./conf/costy/alembic.ini upgrade head"
env_file:
- conf/costy/.env
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./conf/costy:/conf/costy
auth:
image: costy-auth
command: sh -c "uvicorn auth.main.web:init_app --host 0.0.0.0 --port 8000 --factory"
env_file:
- ./conf/auth/.env
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- auth-migrate
auth-migrate:
image: costy-auth
command: sh -c "alembic -c ./conf/auth/alembic.ini upgrade head"
env_file:
- conf/auth/.env
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./conf/auth:/conf/auth
volumes:
caddy_data:
caddy_config: