-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
55 lines (52 loc) · 1.66 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
services:
kpas_db:
image: mysql:8.0
container_name: kpas_db
environment:
MYSQL_DATABASE: db_kpas
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: usr_app_kpas
MYSQL_PASSWORD: Password@123
volumes:
- kpas_db_data:/var/lib/mysql
ports:
- "3315:3306"
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- kpas_network
kpas_app:
build: .docker
container_name: kpas_app
depends_on:
kpas_db:
condition: service_healthy
environment:
CANVAS_ACCESS_KEY_NAME: "" # Use a unique name for your access key like "John Doe", final output in Canvas: Rolle og grupper (John Doe)
CANVAS_ACCESS_KEY: "" # Generate a new access key here: https://bibsys.test.instructure.com/profile/settings
APP_URL: "" # Generate ngrok tunnel URL (eks. https://udir-kpas-api-john.eu.ngrok.io): ngrok http http://localhost:8080 --subdomain udir-kpas-api-<ReplaceWithYourName>
volumes:
- ./:/var/www/html
- .docker/nginx.conf:/etc/nginx/nginx.conf
- .docker/fpm-pool.conf:/usr/local/etc/php/php-fpm.d/www.conf
- .docker/php.ini:/usr/local/etc/php/conf.d/custom.ini
- .docker/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
- .docker/startup.sh:/var/www/html/startup.sh
- kpas_nvm_data:/usr/local/nvm
- kpas_npm_data:/var/www/.npm
- kpas_composer_data:/var/www/.composer
ports:
- "8080:8080"
networks:
- kpas_network
networks:
kpas_network:
driver: bridge
volumes:
kpas_db_data:
kpas_nvm_data:
kpas_npm_data:
kpas_composer_data: