-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.prod.yml
44 lines (40 loc) · 1.07 KB
/
docker-compose.prod.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
version: '3.7'
services:
goggles-db:
image: mariadb:latest
# Set max_allowed_packet to 512M (this should prevent the "MySQL server has gone away"
# issue due to timeout when running huge queries)
command: --max_allowed_packet=67108864
container_name: goggles-db
env_file:
- .env
ports:
- '33060:3306'
restart: always
volumes:
- "~/Projects/goggles_deploy/db.prod:/var/lib/mysql"
api:
build:
context: .
dockerfile: Dockerfile.prod
image: "steveoro/goggles-api:prod-${TAG}"
depends_on:
- goggles-db
container_name: goggles-api
env_file:
- .env
ports:
- '8081:8081'
restart: always
volumes:
- "~/Projects/goggles_deploy/storage.prod:/app/storage"
- "~/Projects/goggles_deploy/db.prod:/var/lib/mysql"
- "~/Projects/goggles_deploy/backups:/app/db/dump"
- "~/Projects/goggles_deploy/log.prod/api:/app/log"
- "~/Projects/goggles_deploy/master-api.key:/app/config/master.key"
networks:
default:
name: prod
volumes:
gem_cache:
node_modules: