-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
73 lines (71 loc) · 1.44 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
services:
app:
build:
args:
user: aji
uid: 1000
context: ./
dockerfile: ./Dockerfile
image: spppaud
container_name: spppaud-app
working_dir: /var/www/
volumes:
- ./:/var/www
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
mem_limit: 512m
mem_reservation: 128M
cpus: 0.5
networks:
- spppaud
nginx:
image: nginx:1.17-alpine
container_name: spppaud-nginx
ports:
- 8000:80
volumes:
- ./:/var/www
- ./default.conf:/etc/nginx/conf.d/default.conf
mem_limit: 512m
mem_reservation: 128M
cpus: 0.5
networks:
- spppaud
db:
image: mariadb:latest
container_name: spppaud-db
ports:
- 3306:3306
volumes:
- spppauddb:/var/lib/mysql
- ./database:/database
environment:
MYSQL_ROOT_PASSWORD: password
mem_limit: 512m
mem_reservation: 128M
cpus: 0.5
networks:
spppaud:
ipv4_address: 10.5.0.99
phpmyadmin:
image: phpmyadmin
container_name: spppaud-phpmyadmin
ports:
- "8001:80"
environment:
- PMA_HOST=db
- PMA_PORT=3306
- UPLOAD_LIMIT=300M
networks:
- spppaud
volumes:
spppauddb:
driver: local
networks:
spppaud:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.5.0.0/24
gateway: 10.5.0.1