-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
64 lines (58 loc) · 1.46 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
56
57
58
59
60
61
62
63
64
# For more information: https://laravel.com/docs/sail
version: '3.8'
services:
php:
image: registry.cevi.tools/cevi/zopftool_php_fpm:latest
build:
context: .
dockerfile: docker/php.Dockerfile
networks:
- internal-net
depends_on:
- mysql
environment:
- ENV_FILE_PATH=/run/secrets/.env
volumes:
- .env:/run/secrets/.env
- profile-picture-storage:/var/www/html/storage/app/public:rw
- protected-file-storage:/var/www/html/storage/app/files:rw
nginx:
image: registry.cevi.tools/cevi/zopftool_nginx:latest
build:
context: .
dockerfile: docker/nginx.Dockerfile
ports:
- "8080:80"
networks:
- internal-net
depends_on:
- php
volumes:
- profile-picture-storage:/var/www/html/public/storage:ro
mysql:
image: registry.cevi.tools/cevi/zopftool_mysql_server:latest
build:
context: .
dockerfile: docker/mysql.Dockerfile
ports:
- '3306:3306'
volumes:
- mysql-data-production:/var/lib/mysql
- .env:/run/secrets/.env
environment:
- ENV_FILE_PATH=/run/secrets/.env
networks:
- internal-net
networks:
internal-net:
driver: bridge
volumes:
mysql-data-production:
driver: local
name: zopftool_mysql_data_production
profile-picture-storage:
driver: local
name: zopftool_profile_picture_storage
protected-file-storage:
driver: local
name: zopftool_protected_file_storage