-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.1 KB
/
docker-compose.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
version: '3'
services:
nginx:
image: "nginx:alpine"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./biofuturo:/opt/biofuturo
- ./test:/opt/test
- ./letsencrypt/certs:/etc/letsencrypt/
links:
- mapa-biofuturo
- test-passport
ports:
- "443:443"
mapa-biofuturo:
build:
context: .
dockerfile: web.dockerfile
image: web:latest
volumes:
- ./biofuturo:/opt/biofuturo
links:
- db-biofuturo
test-passport:
build:
context: .
dockerfile: web.dockerfile
image: web:latest
volumes:
- ./test:/opt/test
links:
- db-passport
db-biofuturo:
image: "mysql:5.7"
volumes:
- ./db-biofuturo:/var/lib/mysql
- ./biofuturo/application/_installation:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: test
db-passport:
image: "mysql:5.7"
volumes:
- ./db-passport:/var/lib/mysql
- ./test/application/_installation:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: test