-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
70 lines (66 loc) · 1.55 KB
/
docker-compose.yaml
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
# NOTE::
# The services, settings and environment setup in this compose file is for DEVELOPMENT ONLY!
#
# It is intended to run the Apollo server in an "offline" mode. All data will be mocked.
#
networks:
apollo-network:
driver: bridge
services:
mariadb:
image: "bitnami/mariadb:latest"
restart: always
container_name: apollo-mariadb
environment:
- "MARIADB_ROOT_PASSWORD=d0ckerSecr3t"
- "MARIADB_USER=dmspuser"
- "MARIADB_PASSWORD=abcd3fgh1j"
- "MARIADB_DATABASE=dmsp"
networks:
- apollo-network
ports:
- "3307:3306"
- "3306:3306"
expose:
- 3307
volumes:
- "./docker/mariadb-persistence:/bitnami/mariadb"
redis:
image: "public.ecr.aws/docker/library/redis:alpine"
container_name: apollo-redis
command: redis-server
networks:
- apollo-network
ports:
- "6379:6379"
volumes:
- "./docker/redis:/var/lib/redis"
apollo:
container_name: apollo-server
depends_on:
- mariadb
- redis
build:
context: .
dockerfile: Dockerfile
ports:
- "4000:4000"
networks:
- apollo-network
expose:
- 4000
env_file:
- .env
environment:
- "NODE_ENV=development"
- "MYSQL_CONNECTION_LIMIT=5"
- "MYSQL_HOST=apollo-mariadb"
- "MYSQL_PORT=3306"
- "MYSQL_DATABASE=dmsp"
- "MYSQL_USER=dmspuser"
- "MYSQL_PASSWORD=abcd3fgh1j"
- "CACHE_HOST=apollo-redis"
- "CACHE_PORT=6379"
- "CACHE_CONNECT_TIMEOUT=10000"
volumes:
- ".:/app"