-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.dev.yml
65 lines (61 loc) · 1.42 KB
/
compose.dev.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
services:
aqua-api:
build:
context: .
dockerfile: apps/aqua/Dockerfile
container_name: aqua-app
ports:
- "3000:3000"
networks:
- app_network
depends_on:
- postgres
- redis
env_file:
- .env
# traefik:
# image: traefik:v2.10
# container_name: traefik
# command:
# - "--api.insecure=true"
# - "--providers.file.directory=/etc/traefik/dynamic"
# - "--providers.file.watch=true"
# - "--entrypoints.web.address=:80"
# ports:
# - "80:80" # HTTP
# - "8080:8080" # Dashboard
# volumes:
# - ./traefik/dynamic:/etc/traefik/dynamic:ro
# networks:
# - app_network
# extra_hosts:
# - "host.docker.internal:host-gateway" # This allows reaching host machine
# postgres:
# image: postgres:latest
# container_name: postgres_db
# environment:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: yourpassword
# POSTGRES_DB: yourdatabase
# ports:
# - "5432:5432"
# volumes:
# - postgres_data:/var/lib/postgresql/data
# networks:
# - app_network
# redis:
# image: redis:latest
# container_name: redis_cache
# ports:
# - "6379:6379"
# volumes:
# - redis_data:/data
# command: redis-server --appendonly yes
# networks:
# - app_network
networks:
app_network:
driver: bridge
volumes:
postgres_data:
redis_data: