-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
49 lines (46 loc) · 1.17 KB
/
docker-compose.yaml
File metadata and controls
49 lines (46 loc) · 1.17 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
version: '3.7'
services:
php:
build:
context: ./docker/php
working_dir: /app/sample
volumes:
- ./:/app/sample
links:
- database
networks:
- backend
nginx:
image: nginx:stable
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/selfsigned.crt:/etc/cert/selfsigned.crt
- ./docker/nginx/selfsigned.key:/etc/cert/selfsigned.key
- ./:/app/sample
ports:
- "8000:443"
links:
- php
depends_on:
- php
networks:
- backend
database:
image: mariadb:10
volumes:
- sampleMysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "verysecret"
MYSQL_DATABASE: "certificates"
MYSQL_USER: "vagrant"
MYSQL_PASSWORD: "secret"
TZ: "Europe/Amsterdam"
ports:
- "3310:3306"
networks:
- backend
volumes:
sampleMysql:
networks:
backend: