-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (63 loc) · 1.29 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
64
65
version: '3'
services:
web:
image: nginx
container_name: your_finance_nginx
restart: always
volumes:
- .:/app/
- ./docker/nginx/app.conf:/etc/nginx/conf.d/default.conf
ports:
- ${APP_PORT}:80
depends_on:
- php
networks:
local-network:
public-network:
php:
build:
context: ./docker/php/
container_name: your_finance_dev
working_dir: /app
image: your_finance/php
tty: true
restart: always
volumes:
- .:/app/
- ./docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- local-network
db:
image: mariadb
restart: always
container_name: your_finance_db
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- dbdata:/var/lib/mysql
networks:
- local-network
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
restart: always
ports:
- 9001:80
environment:
PMA_HOST: db
PMA_ARBITRARY: 1
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
volumes:
- /sessions
networks:
local-network:
public-network:
networks:
local-network:
public-network:
volumes:
dbdata: