-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (50 loc) · 1009 Bytes
/
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
version: '1'
services:
redis:
container_name: cache
image: redis
env_file:
- .env
ports:
- 6379:6379 # TODO: Remove once deploying to prod
volumes:
- redis:/data
mysql:
container_name: database
build:
context: ./.docker/mysql/
args:
MYSQL_USERNAME: xd
MYSQL_PASSWORD: xd
MYSQL_DATABASE: xd
MYSQL_ROOT_PASSWORD: xd
restart: always
env_file:
- .env
ports:
- 3306:3306 # TODO: Remove once deploying to prod
app:
container_name: app
build: ./
env_file:
- .env
depends_on:
- mysql
- redis
nginx:
container_name: httpserver
build: ./.docker/nginx/
env_file:
- .env
depends_on:
- app
# TODO: Remove when deploying to prod
adminer:
container_name: adminersql
image: adminer
restart: always
ports:
- 8080:8080
volumes:
redis:
driver: local