-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
56 lines (53 loc) · 1.51 KB
/
docker-compose.yaml
File metadata and controls
56 lines (53 loc) · 1.51 KB
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
services:
mariadb:
image: mariadb:lts
container_name: neticrm-mariadb
restart: always
environment:
MARIADB_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MARIADB_DATABASE: ${MYSQL_DATABASE}
MARIADB_USER: ${MYSQL_USER}
MARIADB_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ./data/mariadb_data:/var/lib/mysql
- ./container/mysql/my.cnf:/etc/mysql/my.cnf
- ./container/mysql/initdb.d:/docker-entrypoint-initdb.d
networks:
- neticrm_network
php-fpm:
image: ghcr.io/netivism/neticrm-docker/neticrm-php:php-only-d10
container_name: neticrm-php
restart: always
working_dir: /var/www/html
environment:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
DOMAIN: ${DOMAIN}
ADMIN_LOGIN_USER: ${ADMIN_LOGIN_USER}
ADMIN_LOGIN_PASSWORD: ${ADMIN_LOGIN_PASSWORD}
LANGUAGE: ${LANGUAGE}
volumes:
- ./data/www:/var/www/html
- ./container/init-10.sh:/init.sh
- ./container/supervisord/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
depends_on:
- mariadb
networks:
- neticrm_network
nginx:
image: nginx:stable
container_name: neticrm-nginx
restart: always
ports:
- "${HTTP_BIND:-0.0.0.0}:${HTTP_PORT}:80"
volumes:
- ./data/www:/var/www/html:ro
- ./container/nginx/conf.d:/etc/nginx/conf.d
depends_on:
- php-fpm
networks:
- neticrm_network
networks:
neticrm_network:
driver: bridge