-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
43 lines (43 loc) · 1.25 KB
/
docker-compose.yaml
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
version: '3'
services:
web: &web
build: .
#image: registry.gitlab.com/nebojsatomic/ide21:demo
image: web
#pull_policy: always
ports:
- '${APP_PORT:-80}:80'
- '${APP_PORT_HTTPS:-443}:443'
volumes:
#- ./src:/var/www/html # uncomment this if you want to use src folder inside running container, development use
- 'ide21src:/var/www/html' #otherwise use named volume, for production use
#user: ${CURRENT_UID}
command: /bin/bash -c "/var/www/html/startup.sh"
networks:
- cmside2
depends_on:
- mysqldb
mysqldb:
#image: 'mysql:5.6'
image: 'mariadb:10.9.4'
ports:
- '${FORWARD_DB_PORT:-3306}:3306'
environment:
MYSQL_ROOT_PASSWORD: 'nebojsa'
MYSQL_DATABASE: 'cms_ide'
MYSQL_USER: 'root'
MYSQL_PASSWORD: 'nebojsa'
#MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- ./data:/var/lib/mysql
#- '${MYSQL_DATA_PATH:-./data}:/var/lib/mysql'
networks:
- cmside2
networks:
cmside2:
driver: bridge
volumes:
ide21src:
driver: local
data:
driver: local