-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (45 loc) · 888 Bytes
/
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:
web:
image: nginx:latest
container_name: cad-nginx
volumes:
- ./code:/mnt/code/:rw
- ./docker/web/:/etc/nginx/conf.d/
ports:
- 9292:80
depends_on:
- php
networks:
- net3
php:
build: ./docker/php/
container_name: cad-php
volumes:
- ./code:/mnt/code/:rw
depends_on:
- mysql
tty: true
networks:
- net3
mysql:
image: mysql:latest
container_name: cad-mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_USER: docker
MYSQL_PASSWORD: docker
MYSQL_DATABASE: code_and_design
ports:
- 3406:3306
networks:
- net3
networks:
net3:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "true"
ipam:
driver: default
config:
- subnet: 192.168.12.0/24