-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevmode-1node.yml
More file actions
65 lines (61 loc) · 1.47 KB
/
devmode-1node.yml
File metadata and controls
65 lines (61 loc) · 1.47 KB
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
version: '3.7'
services:
vintage_1:
image: vintage:latest
restart: always
ports:
- "8001:8001"
environment:
- RUST_LOG=info
command: vintage -c /vintage/config.yml
depends_on:
- cache_1
- db_1
dtomcat_1:
image: dtomcat:latest
restart: always
ports:
- "3000:3000"
environment:
- REDIS_HOST=cache_1:6379
- DB_HOST=db_1:5432
- REDIS_URL=redis://cache_1:6379
- DB_URL=postgresql://postgres:postgres@db_1:5432/#proto?sslmode=disable
- OUTBOUND_HOST1=https://xxx.com
- OUTBOUND_HOST2=https://yyy.com
- OUTBOUND_HOST3=https://zzz.com
- RUST_LOG=info
- SPIN_ENV_DEMO1=xxxxxxyyyzzzz
- SPIN_ENV_DEMO2=zzzzyyyxxx
command: dtomcat
depends_on:
- cache_1
- db_1
- vintage_1
db_1:
image: postgres:15.2-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=${POSTGRES_DBNAME}
logging:
options:
max-size: 10m
max-file: "3"
ports:
- '5432:5432'
volumes:
# - ./postgres-data:/var/lib/postgresql/data
# copy the sql script to create tables
- ./init_pg.sql:/docker-entrypoint-initdb.d/init_pg.sql
depends_on:
- cache_1
cache_1:
image: redis:6.2-alpine
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning
#volumes:
# - cache:/data