-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
94 lines (77 loc) · 1.83 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '2'
services:
### Mount Applications ######################################
applications:
image: tianon/true
volumes:
- ../KojoFitness/:/var/www/html/kojo_fitness.neighborhoods.com
mysql_data:
image: tianon/true
volumes:
- ./data/mysql:/docker-entrypoint-initdb.d
pgsql_data:
image: tianon/true
volumes:
- ./data/pgsql:/docker-entrypoint-initdb.d
### Kōjō Fitness Container (php-fpm) #########################
kojo_fitness:
build:
context: .
args:
- INSTALL_XDEBUG=true
- COMPOSER_INSTALL=false
volumes:
# Shares AWS credentials to the docker container
- $HOME/.aws:/root/.aws
- $HOME/.aws:/var/www/.aws
volumes_from:
- applications
env_file:
- kojo.env
### MySQL Container #########################################
mysql:
build:
context: ./mysql
args:
- MYSQL_DATABASE=kojo
- MYSQL_USER=kojo
- MYSQL_PASSWORD=kojofitness
- MYSQL_ROOT_PASSWORD=kojoroot
volumes:
- mysql:/var/lib/mysql
volumes_from:
- mysql_data
ports:
- "3307:3306"
### PostgreSQL PostGis Container ############################
pgsql:
build: ./postgres
volumes:
- postgres:/var/lib/postgresql/data
volumes_from:
- pgsql_data
ports:
- "5433:5432"
environment:
POSTGRES_DB: kojo
POSTGRES_USER: kojo
POSTGRES_PASSWORD: kojofitness
### Redis Container #########################################
redis:
build: ./redis
volumes:
- redis:/data
ports:
- "6380:6379"
### Volumes Setup ###########################################
volumes:
mysql:
driver: "local"
postgres:
driver: "local"
redis:
driver: "local"
### Network Setup ###########################################
networks:
default:
driver: bridge