-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
54 lines (52 loc) · 1.22 KB
/
docker-compose.yaml
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
# Only used for local development.
services:
fpm:
build:
context: .
dockerfile: Dockerfile.fpm
image: blindernuka/billett-backend
environment:
SIMPLESAMLPHP_ADMINPASS: billett
SIMPLESAMLPHP_SECRETSALT: replace-this-in-other-envs
LARAVEL_ENV: local
BILLETT_KEY: KeNd439jeX9n9hqudOxXqCQErFmbApoi
BILLETT_MYSQL_PASS: uka_billett
DB_HOST: database
env_file:
- backend/.env
nginx:
build:
context: .
dockerfile: Dockerfile.nginx
image: blindernuka/billett-proxy
ports:
- "8081:80"
volumes_from:
- fpm:ro
environment:
FPM_HOST: fpm:9000
FRONTEND_URL: http://${DOCKER_GATEWAY_HOST:-host.docker.internal}:3000
database:
image: mysql:8.4.3
volumes:
- db:/var/lib/mysql/
environment:
MYSQL_ROOT_PASSWORD: uka
MYSQL_DATABASE: uka_billett
MYSQL_USER: uka_billett
MYSQL_PASSWORD: uka_billett
ports:
- "127.0.0.1:3306:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_HOST=database
- PMA_USER=uka_billett
- PMA_PASSWORD=uka_billett
- UPLOAD_LIMIT=300M
ports:
- 127.0.0.1:8080:80
volumes:
- /sessions
volumes:
db: