-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (35 loc) · 936 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
version: "3"
services:
nginx:
image: 'noplanalderson/simasjid_docker:latest'
ports:
- '80:8080'
- '443:8443'
volumes:
- ./simasjid_logs/access.log:/var/log/nginx/simasjid-access.log
- ./simasjid_logs/error.log:/var/log/nginx/simasjid-error.log
- ./simasjid:/usr/share/nginx/html/simasjid
- ./default.conf:/etc/nginx/conf.d/default.conf
networks:
app_net:
ipv4_address: 172.20.0.2
mysql:
image: 'mariadb'
ports:
- '3306:3306'
volumes:
- ./db-data:/var/lib/mysql
environment:
- MARIADB_ROOT_PASSWORD=K4s1hp4ssw0rdY4n9kUat!
- MARIADB_DATABASE=db_simasjid
- MARIADB_USER=userdb_simasjid
- MARIADB_PASSWORD=K4s1hp4ssw0rdY4n9kUat!
networks:
app_net:
ipv4_address: 172.20.0.3
networks:
app_net:
ipam:
driver: default
config:
- subnet: "172.20.0.0/29"