-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml.dist
52 lines (46 loc) · 979 Bytes
/
docker-compose.yml.dist
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
version: '2'
services:
nginx:
image: nginx:alpine
volumes:
- ./dockerfiles/nginx/dev/nginx.conf:/etc/nginx/nginx.conf
- ./dockerfiles/nginx/dev/conf.d/default.conf:/etc/nginx/conf.d/default.conf
links:
- frontend
- backend
ports:
- 80:80
backend:
build: ./dockerfiles/backend
image: opendesign/backend:1.0
volumes:
- ./backend:/var/www
links:
- frontend
- mysql
frontend:
build: ./dockerfiles/frontend
image: opendesign/frontend:1.0
volumes:
- ./frontend:/var/www
mysql:
image: mysql:5.7
volumes:
- opendesign-data:/var/lib/mysql
restart: always
expose:
- 3306
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: opendesign
MYSQL_USER: opendesign
MYSQL_PASSWORD: opendesign
volumes:
opendesign-data:
external: true
networks:
default:
external:
name: opendesign