Fix isCrewSelected method to handle undefined crew value
[allerta-vvf.git] / docker-compose.yaml
blob618ccae77009b82cbc9fdceb506163ae9b390bba
1 services:
2   server:
3     build:
4       context: ./docker_nginx
5       dockerfile: Dockerfile
6       args:
7         - UID=${UID:-1000}
8         - GID=${GID:-1000}
9     ports:
10       - "80:80"
11     depends_on:
12       - backend
13       - frontend
15   backend:
16     build:
17       context: ./backend
18       dockerfile: Dockerfile
19       args:
20         - UID=${UID:-1000}
21         - GID=${GID:-1000}
22     depends_on:
23       db:
24         condition: service_healthy
25     environment:
26       - DB_HOST=db
27       - DB_USER=user
28       - DB_PASSWORD=password
29       - DB_DATABASE=mydb
30     volumes:
31       - laravel-storage:/var/www/html/storage
33   db:
34     image: mysql:9.1
35     environment:
36       MYSQL_ROOT_PASSWORD: root
37       MYSQL_DATABASE: mydb
38       MYSQL_USER: user
39       MYSQL_PASSWORD: password
40     volumes:
41       - db-data:/var/lib/mysql
42     healthcheck:
43       test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-p${MYSQL_ROOT_PASSWORD}"]
44       timeout: 15s
45       retries: 10
46   
47   frontend:
48     build:
49       context: ./frontend
50       dockerfile: Dockerfile
51       args:
52         - UID=${UID:-1000}
53         - GID=${GID:-1000}
54   
55   phpmyadmin:
56     image: phpmyadmin/phpmyadmin
57     environment:
58       PMA_HOST: db
59       PMA_USER: user
60       PMA_PASSWORD: password
61     ports:
62       - "8080:80"
63     depends_on:
64       - db
66 volumes:
67   db-data:
68   laravel-storage: