-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
executable file
·86 lines (78 loc) · 2.53 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3"
services:
# Frontend deployed on GitHub Pages by a GitHub Action
mysql:
restart: unless-stopped
image: mariadb:10.3
environment:
MYSQL_DATABASE: dsri-db
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD-password}
MARIADB_USER: dsri-user
MARIADB_PASSWORD: ${DB_PASSWORD-password}
MARIADB_ROOT_PASSWORD: ${DB_PASSWORD-password}
# volumes:
# - ./data:/var/lib/mysql
# - ./backup:/backup
# - ./server/cron/backup_database.sh:/app/backup_database.sh
# - ./server/cron/backup_database.sh:/app/restore_backup.sh
# docker-compose exec mysql chown mysql: /backup
# - ./server/schemas:/docker-entrypoint-initdb.d
command: --max-allowed-packet=16M
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
restart: unless-stopped
depends_on:
- mysql
environment:
- PMA_PASSWORD=${DB_PASSWORD-password}
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD-password}
- MYSQL_PASSWORD=${DB_PASSWORD-password}
- PMA_HOST=mysql:3306
api:
build: ./server
restart: unless-stopped
depends_on:
- mysql
- phpmyadmin
environment:
- SQL_URL=mysql://dsri-user:${DB_PASSWORD-password}@mysql:3306/dsri-db
- SLACK_BOT_TOKEN=${SLACK_BOT_TOKEN-xoxb}
- SLACK_CHANNEL=${SLACK_CHANNEL-UQL6BCQJH}
# - CLUSTER_USER=${CLUSTER_USER-Vincent.Emonet}
# - CLUSTER_PASSWORD=${CLUSTER_PASSWORD-password}
- CLUSTER_API_KEY=${CLUSTER_API_KEY-token}
- API_PASSWORD=${API_PASSWORD-password}
gpu-calendar:
build: ./gpu-calendar
restart: unless-stopped
depends_on:
- mysql
- phpmyadmin
environment:
- DB_PASSWORD=${DB_PASSWORD-password}
gpu-booking:
build: ./gpu-reservation/docker/php
restart: unless-stopped
depends_on:
- mysql
- phpmyadmin
environment:
- DB_PASSWORD=${DB_PASSWORD-password}
# Bind the container folder to the host folder env setting
volumes:
- ${FOLDER_BOOKING_APP}:/var/www/html
- ${FOLDER_SAML_CONFIG}:/var/www/simplesamlphp/config
- ${FOLDER_SAML_METADATA}:/var/www/simplesamlphp/metadata
- ${FOLDER_SAML_CERT}:/var/www/simplesamlphp/cert
# cron:
# # Same image as the API
# build: ./server
# restart: unless-stopped
# depends_on:
# - mysql
# - phpmyadmin
# environment:
# - SQL_URL=mysql://dsri-user:${DB_PASSWORD-password}@mysql:3306/dsri-db
# - SLACK_BOT_TOKEN=${SLACK_BOT_TOKEN-xoxb}
# - SLACK_CHANNEL=${SLACK_CHANNEL-UQL6BCQJH}
# command: /app/cron/start_cron.sh