-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (48 loc) · 1.15 KB
/
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
47
48
49
50
version: "3"
# When docker turns off by force sometimes MySQL/MariaDB have problems
# Initializing. Ensure deleting the file tc.log inside the
# /database directory and restart.
#
# This docker-compose is for development only. For production use
# another more secure configuration.
services:
db:
image: mariadb
volumes:
- ./database/mariadb/data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: docker
MYSQL_DATABASE: docker
MYSQL_USER: docker
MYSQL_PASSWORD: docker
ports:
# machine port : docker port
- 3306:3306
pw:
container_name: yaws
volumes:
- ./www:/var/www
- ./log:/var/log/yaws
- ./yaws:/usr/local/etc/yaws
depends_on:
- db
links:
- db
build:
context: .
dockerfile: ./Dockerfile
restart: always
environment:
LC_ALL: en_US.UTF-8
MYSQL_HOST: db
MYSQL_PORT: 3306
MYSQL_DATABASE: docker
MYSQL_USER: docker
MYSQL_PASS: docker
STAGE: dev
ports:
# machine port : docker port
- 8080:8080
stdin_open: true # docker run -i
tty: true # docker run -t