-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (54 loc) · 1.62 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
version: "3.3"
services:
caddy:
container_name: caddy
image: caddy:2.0.0-alpine
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./static:/usr/share/caddy
- ./Caddyfile:/etc/caddy/Caddyfile
- ./caddy_data:/data
watchtower:
container_name: watchtower
image: v2tec/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/ubuntu/.docker/config.json:/config.json
command: watchtower crime-api vcpp-scraper vcpp-api --interval 120
crime-api:
container_name: crime-api
image: docker.pkg.github.com/stlrda/crime-api/crime-api:latest
restart: always
depends_on:
- caddy
ports:
- 3000:3000
environment:
- DB_HOST=$CRIME_DB_HOST
- DB_USER=$CRIME_DB_USER
- DB_PASS=$CRIME_DB_PASS
- DB_PORT=5432
- DB_NAME=crime
vcpp-scraper:
container_name: vcpp-scraper
image: docker.pkg.github.com/stlrda/vc_parcel_project/vcpp-scraper:latest
restart: always
environment:
- DB_HOST=$VCPP_DB_HOST
- DB_PASS=$VCPP_DB_PASS
- API_KEY=$VCPP_API_KEY
vcpp-api:
container_name: vcpp-api
image: docker.pkg.github.com/stlrda/vc_parcel_project/vcpp-api:latest
restart: always
depends_on:
- caddy
ports:
- 4001:4001
environment:
- DB_HOST=$VCPP_DB_HOST
- DB_PASS=$VCPP_DB_PASS