-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.47 KB
/
docker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.47 KB
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
services:
php-fpm: &php
build:
context: ./php
args: &php-build-args
UID: $CONTAINER_USER_UID
GID: $CONTAINER_USER_GID
working_dir: /var/www/html
volumes:
- "${SRC_DIR}:/var/www/html:delegated"
- user_home:/home/www-data:delegated
nginx:
build:
context: ./nginx
args:
UID: $CONTAINER_USER_UID
GID: $CONTAINER_USER_GID
volumes:
- "${SRC_DIR}:/var/www/html:delegated"
- ./nginx/server.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx/certificate.key.pem:/etc/nginx/certificates/certificate.key.pem:ro
- ./nginx/certificate.crt.pem:/etc/nginx/certificates/certificate.crt.pem:ro
- ./nginx/defaults.conf:/etc/nginx/defaults:ro
- ./nginx/fastcgi_params.conf:/etc/nginx/fastcgi_params:ro
links:
- php-fpm
expose:
- 80
- 443
ports:
- 8080:80
- 443:443
mysql:
image: mysql:latest
volumes:
- mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_DATABASE: 'programm'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'root'
links:
- php-fpm
volumes:
user_home:
driver: local
name: user_home
mysql:
driver: local
name: mysql