-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
45 lines (44 loc) · 918 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
services:
#nginx webserver + php 5.6
web:
image: nginx:1.19.6-alpine
ports:
- "8080:80"
depends_on:
- db
volumes:
- ./:/code
- ./site.conf:/etc/nginx/conf.d/default.conf
networks:
leftchan_net:
ipv4_address: 172.20.0.3
links:
- php
php:
build: .
volumes:
- ./:/code
networks:
leftchan_net:
ipv4_address: 172.20.0.4
#MySQL Service
db:
image: mysql:5.6.50
container_name: db
restart: unless-stopped
tty: true
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: lainchan
MYSQL_ROOT_PASSWORD: M9q5lO0RxJVh
networks:
leftchan_net:
ipv4_address: 172.20.0.2
#Docker Networks
networks:
leftchan_net:
ipam:
driver: default
config:
- subnet: 172.20.0.0/16