-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 993 Bytes
/
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
version: "3.9"
services:
web:
build: .
env_file: .env
ports:
- "8000:8000"
restart: always
networks:
- web
- db
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.securenet-secure.entrypoints=websecure"
- "traefik.http.routers.securenet-secure.rule=Host(`securenet.photoai.pro`)"
# volumes:
# - .:/app
depends_on:
- redis
environment:
- REDIS_HOST=redis
extra_hosts:
- "host.docker.internal:host-gateway"
# db:
# image: postgres:13.3
# volumes:
# - postgres_data:/var/lib/postgresql/data/
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# - POSTGRES_DB=postgres
redis:
image: redis
volumes:
- ./redis_data:/var/lib/redis/data
networks:
- db
ports:
- "6379:6379"
networks:
web:
external: true
db: