-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.prod.yml
46 lines (46 loc) · 1.26 KB
/
docker-compose.prod.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
version: '3.4'
services:
nginx:
container_name: orct2p_nginx
image: saadbruno/openrct2_plugin_repository_nginx:latest
build:
context: ./
dockerfile: docker/nginx/prod/Dockerfile
ports:
- "${HTTP_PORT}:80"
env_file:
- .env
depends_on:
- php-fpm
restart: unless-stopped
logging:
options:
max-size: 10m
php-fpm:
container_name: orct2p_php-fpm
image: saadbruno/openrct2_plugin_repository_php:latest
build:
context: ./
dockerfile: docker/php-fpm/prod/Dockerfile
env_file:
- .env
depends_on:
- mysql
restart: unless-stopped
logging:
options:
max-size: 10m
mysql:
container_name: orct2p_mysql
image: mysql:8.0.16
env_file: .env
volumes:
- ./docker/mysql/mysql-low-memory.cnf:/etc/mysql/conf.d/mysql-low-memory.cnf:ro
- ./docker/mysql/orct2p.sql:/docker-entrypoint-initdb.d/orct2p.sql:ro
- orct2p-db:/var/lib/mysql
restart: unless-stopped
logging:
options:
max-size: 10m
volumes:
orct2p-db: