forked from inidus/livecode-community-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (40 loc) · 996 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
46
version: '3.1'
services:
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: root_livecode
MYSQL_USER: user_livecode
MYSQL_PASSWORD: pass_livecode
MYSQL_DATABASE: db_livecode
MYSQL_ROOT_HOST: "%"
networks:
- livecode-db
volumes:
- db-data:/var/lib/mysql
- ./user-data/mariadb/db-src:/docker-entrypoint-initdb.d
container_name: livecode-db
livecode:
build: ./livecode-centos7-httpd
volumes:
- ./user-data/html:/var/www/html
networks:
- livecode-web
- livecode-db
container_name: livecode-app
proxy:
build: ./nginx # If using Filebeat to ship logs to ELK
#build: ./nginx-filebeat # If using Filebeat to ship logs to ELK
ports:
- "80:80"
volumes:
- ./nginx/sites-enabled:/etc/nginx/sites-enabled
networks:
- livecode-web
container_name: livecode-proxy
networks:
livecode-db:
livecode-web:
volumes:
db-data: