-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
55 lines (52 loc) · 1.31 KB
/
docker-compose.prod.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
version: '3'
# Dandelion
services:
dandelion:
image: forge.aeris-one.fr/dandelion/dandelion:stable
volumes:
- ./data/dandelion:/app/data:rw
container_name: dandelion
restart: always
networks:
- dandelion
depends_on:
mysql:
condition: service_healthy
environment:
- DATABASE_USER=dandelion
- DATABASE_NAME=dandelion
- DATABASE_PASSWORD=password
- DATABASE_HOST=mysql
- DATABASE_PORT=3306
- DATABASE_SSL=False
- DISCORD_BOT_TOKEN=your-bot-token
- DISCORD_APPLICATION_ID=your-application-id
- DISCORD_OWNER_ID=your-discord-user-id
- DISCORD_MAIN_GUILD_ID=your-support-guild-id
- DISCORD_STATUS_CHANNEL_ID=your-status-channel-id
- PROXY=your-proxy-here
- ENVIRONMENT=production
# MySQL
mysql:
image: mysql:8
container_name: mysql
restart: always
networks:
- dandelion
volumes:
- ./data/mysql:/var/lib/mysql:rw
expose:
- 3306
environment:
- MYSQL_DATABASE=dandelion
- MYSQL_USER=dandelion
- MYSQL_PASSWORD=password
- TZ=Europe/Paris
- MYSQL_RANDOM_ROOT_PASSWORD=yes
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 30s
timeout: 10s
networks:
dandelion:
driver: bridge