-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.development.yml
65 lines (60 loc) · 1.45 KB
/
docker-compose.development.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
61
62
63
64
65
version: '3.8'
services:
mongodb:
container_name: mongodb-praise
image: mongo:5.0.6
env_file:
- .env
ports:
- $MONGO_PORT:27017
restart: unless-stopped
volumes:
- mongodb_data:/data/db
- './packages/mongodb/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh:ro'
- './packages/mongodb/entrypoint.sh:/entrypoint.sh:ro'
entrypoint: /entrypoint.sh
networks:
- praise-network
api:
container_name: api-praise
image: ghcr.io/givepraise/praise-dev/api:latest
env_file:
- .env
restart: always
ports:
- $API_PORT:$API_PORT
volumes:
- './packages/api/uploads/:/usr/src/uploads/'
- './packages/api/exports/:/usr/src/exports/'
networks:
- praise-network
discord-bot:
container_name: discord-bot-praise
image: ghcr.io/givepraise/praise-dev/discord-bot:latest
env_file:
- .env
restart: always
networks:
- praise-network
frontend:
container_name: frontend-praise
image: ghcr.io/givepraise/praise-dev/frontend:latest
env_file:
- .env
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- caddy_data:/data
- caddy_config:/config
command: >
sh -c "cd /var/www/praise && ./init-env.sh && caddy run --config /etc/caddy/Caddyfile"
networks:
- praise-network
volumes:
mongodb_data:
caddy_data:
caddy_config:
networks:
praise-network: