-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 961 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (42 loc) · 961 Bytes
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
version: '2'
services:
orkapp:
build:
context: ./
dockerfile: php.Dockerfile
ports:
- 18080:80
working_dir: /var/www
volumes:
- ./:/var/www/html/ork/
env_file: .dev.env
container_name: ork-app
networks:
- orknet
orkdb:
image: mariadb:latest
restart: always
environment:
MARIADB_DATABASE: 'ork'
# So you don't have to use root, but you can if you like
MARIADB_USER: 'ork'
# You can use whatever password you like
MARIADB_PASSWORD: 'secret'
# Password for root access
MARIADB_ROOT_PASSWORD: 'root'
ports:
# <Port exposed> : < MySQL Port running inside container>
- '23306:3306'
expose:
# Opens port 3306 on the container
- '3306'
# Where our data will be persisted
volumes:
- data-db:/var/lib/mysql
container_name: ork-db
networks:
- orknet
volumes:
data-db: {}
networks:
orknet: