-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
56 lines (44 loc) · 987 Bytes
/
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
version: '3.3'
services:
# main Web app
app:
network_mode: "host"
environment:
DATABASE_NAME: $DATABASE_NAME
DATABASE_USER: $DATABASE_USER
DATABASE_PASSWORD: $DATABASE_PASSWORD
DATABASE_PORT: $DATABASE_PORT
build:
context: .
dockerfile: app.Dockerfile
restart: always
ports:
- "8080:8080"
command: app
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
# depends_on:
# - redis
# # db for dynamic data
# redis:
# network_mode: "host"
# image: "redis:5"
# configs:
# - source: redis_config
# target: /etc/redis.conf
# uid: "969"
# gid: "969"
# mode: 0440
# ports:
# - "6379:6579"
# logging:
# driver: "json-file"
# options:
# max-size: "10m"
# max-file: "5"
# configs:
# redis_config:
# file: /usr/local/share/redis/redis.conf