-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (63 loc) · 1.6 KB
/
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
58
59
60
61
62
63
64
65
66
67
version: '3.9'
services:
app:
build: .
container_name: app
# restart: always
image: app
volumes:
- "/Users/romanabramov/Desktop/logs:/logs"
- "/etc/localtime:/etc/localtime:ro"
environment:
- APP_VERSION=${APP_VERSION}
- TZ=Europe/Moscow
- PG_URL=postgres://2:pass@postgres:5432/postgres
- LOG_LEVEL=dev
- SECRET=secret
ports:
- "1000:1000"
depends_on:
- postgres
- nats
# - grafana
# - prometheus
postgres:
container_name: postgres
# restart: always
image: postgres
environment:
POSTGRES_USER: '2'
POSTGRES_PASSWORD: 'pass'
POSTGRES_DB: 'postgres'
ports:
- "5432:5432"
volumes:
- /Users/romanabramov/Documents/Developer/ContLogist/containers/postgres/data:/var/lib/postgresql/data
nats:
image: nats:latest
# restart: always
ports:
- "4222:4222"
- "8222:8222"
- "6222:6222"
environment:
- NATS_CONFIG=/etc/nats/nats-server.conf
volumes:
- /Users/romanabramov/Documents/Developer/ContLogist/containers/nats/nats-server.conf:/etc/nats/nats-server.conf
- /Users/romanabramov/Documents/Developer/ContLogist/containers/nats/data:/tmp/nats/jetstream
command: [ "-js", "-m", "8222" ]
stdin_open: true
tty: true
# grafana:
# image: grafana/grafana-enterprise
# container_name: grafana
# restart: always
# ports:
# - "3000:3000"
# prometheus:
# image: prom/prometheus
# restart: always
# volumes:
# - ./prometheus.yml:/etc/prometheus/prometheus.yml
# ports:
# - "9090:9090"