-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (64 loc) · 1.39 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
66
67
version: "3.8"
services:
# nginx
nginx:
container_name: 'admin-tool-nginx'
image: 'nginx:1.14'
ports:
- 80:80
volumes:
- ./src:/srv:rw
- ./nginx/conf/site-default.conf:/etc/nginx/conf.d/default.conf
links:
- 'php'
# php
php:
container_name: 'admin-tool-php'
build: './php'
working_dir: '/srv'
command: bash -c 'composer install && php-fpm'
volumes:
- ./src:/srv
# mysql
db-mysql:
image: mysql:5.7
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: securerootpassword
MYSQL_DATABASE: db
MYSQL_USER: admin
MYSQL_PASSWORD: admin
volumes:
- ./databases/mysql/dump:/dump
- ./databases/mysql/init.d:/docker-entrypoint-initdb.d
ports:
- 3306:3306
networks:
- recruits
db-postgres:
build:
context: .
dockerfile: dockerfile.postgres
container_name: postgres
environment:
POSTGRES_DB: db
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
# volumes:
# - ./databases/postgres/dump:/dump
# - ./databases/postgres/init.d:/docker-entrypoint-initdb.d
ports:
- 5432:5432
networks:
- recruits
dbs-admin:
image: adminer
container_name: recruits-admin
restart: always
ports:
- 8888:8080
networks:
- recruits
networks:
recruits:
name: recruits