-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.local.yml
74 lines (69 loc) · 1.56 KB
/
docker-compose.local.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
66
67
68
69
70
71
72
73
74
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: api
env_file:
- .env
build:
context: ./
dockerfile: packages/api/Dockerfile
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: discord-bot
env_file:
- .env
build:
context: ./
dockerfile: ./packages/discord-bot/Dockerfile
restart: always
networks:
- praise-network
frontend:
container_name: frontend-praise
image: frontend
env_file:
- .env
build:
context: ./
dockerfile: ./packages/frontend/Dockerfile
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: