-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (48 loc) · 1005 Bytes
/
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
version: "3.7"
services:
discord:
build:
context: .
dockerfile: Dockerfile
target: development
args:
- GO_VERSION=1.21
depends_on:
- mongodb
environment:
MONGO_USERNAME: root
MONGO_PASSWORD: example_password
MONGO_DB: ecfmp
MONGO_HOST: mongodb://mongodb:27017
AUTH_JWT_PUBLIC_KEY_FILE: "./docker/dev_public_key.pub"
AUTH_JWT_AUDIENCE: "ecfmp-discord-dev"
LOG_LEVEL: "TRACE"
ENV_FILE: "./.env"
ports:
- "8080:80"
volumes:
- .:/app
networks:
- default
healthcheck:
interval: 1s
timeout: 5s
retries: 100
start_period: 30s
mongodb:
image: mongo:6.0
container_name: mongodb
logging:
driver: none
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example_password
networks:
- default
volumes:
mongodb_data:
networks:
default:
name: ecfmp