-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (63 loc) · 1.24 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
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3'
services:
db:
image: 'mariadb:10'
container_name: trax_db
command: --default-authentication-plugin=mysql_native_password
restart: on-failure
ports:
- "3307:3306"
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
volumes:
- mysql_data:/var/lib/mysql
networks:
main:
aliases:
- db
php:
build:
context: .
dockerfile: docker/php/Dockerfile
container_name: trax_php
restart: on-failure
ports:
- "9002:9000"
volumes:
- ./:/var/www/trax
links:
- db
depends_on:
- db
networks:
main:
aliases:
- trax_php
nginx:
build:
context: .
dockerfile: docker/nginx/Dockerfile
container_name: trax_nginx
restart: on-failure
ports:
- '8080:80'
- '443:443'
networks:
main:
aliases:
- nginx
volumes:
- ./:/var/www/trax
- ./docker/logs/nginx/:/var/log/nginx:cached
environment:
- NGINX_DEV_HOST=${TRAX_HOST}
- PHP_PORT=9002:9000
depends_on:
- php
volumes:
mysql_data:
networks:
main: