Skip to content

Commit 353871d

Browse files
committed
refactor(docker): add docker-compose for dev instead of prod
1 parent deeeb33 commit 353871d

2 files changed

Lines changed: 83 additions & 83 deletions

File tree

compose.dev.yaml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
services:
2+
influx:
3+
command: 'influxd run --bolt-path /var/lib/influxdb2/influxd.bolt --engine-path /var/lib/influxdb2/engine --store bolt'
4+
container_name: influxdb
5+
image: 'influxdb:2.7-alpine'
6+
networks:
7+
- wolfstar
8+
ports:
9+
- '8285:8086'
10+
restart: always
11+
volumes:
12+
- 'influx-data:/var/lib/influxdb2'
13+
logging:
14+
options:
15+
max-size: '10m'
16+
max-file: '3'
17+
18+
postgres2:
19+
container_name: postgres2
20+
image: 'postgres:15-alpine'
21+
networks:
22+
- wolfstar
23+
ports:
24+
- '5432:5432'
25+
restart: always
26+
volumes:
27+
- 'postgres-data:/var/lib/postgresql/data'
28+
environment:
29+
- POSTGRES_USER=postgres
30+
- POSTGRES_PASSWORD=postgres
31+
- POSTGRES_DB=wolfstar
32+
logging:
33+
options:
34+
max-size: '20m'
35+
max-file: '3'
36+
healthcheck:
37+
test: ['CMD-SHELL', 'pg_isready']
38+
interval: 30s
39+
timeout: 60s
40+
retries: 5
41+
start_period: 80s
42+
43+
redis:
44+
command: 'redis-server --port 8287 --requirepass redis'
45+
container_name: redis
46+
image: 'redis:alpine'
47+
networks:
48+
- wolfstar
49+
ports:
50+
- '8287:8287'
51+
restart: always
52+
logging:
53+
options:
54+
max-size: '20m'
55+
max-file: '3'
56+
57+
wolfstar:
58+
build: ./
59+
container_name: wolfstar
60+
depends_on:
61+
- influx
62+
- postgres2
63+
env_file:
64+
- src/.env.development
65+
- src/.env.development.local
66+
image: ghcr.io/wolfstar-project/wolfstar:latest
67+
networks:
68+
- wolfstar
69+
ports:
70+
- '8282:8282'
71+
restart: always
72+
tty: true
73+
logging:
74+
options:
75+
max-size: '1g'
76+
max-file: '3'
77+
78+
volumes:
79+
postgres-data:
80+
influx-data:
81+
82+
networks:
83+
wolfstar:

compose.yaml

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)