-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
53 lines (49 loc) · 1.25 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
version: "2.3"
services:
baseauth-redis:
image: redis:7-alpine
container_name: baseauth-redis
volumes:
- ./dockerdata/redis/data:/data
networks:
- baseauthnet
restart: always
command: redis-server --appendonly yes
baseauth-postgres:
image: postgres:16-alpine
container_name: baseauth-postgres
environment:
- POSTGRES_PASSWORD=$BASEAUTH_DB_PASSWORD
- POSTGRES_USER=$BASEAUTH_DB_USER
- POSTGRES_DB=$BASEAUTH_DB_NAME
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./dockerdata/postgres/16/data:/var/lib/postgresql/data/pgdata
networks:
- baseauthnet
restart: always
baseauth-django:
build: ./src
container_name: baseauth-django
environment:
- POSTGRES_PASSWORD=$BASEAUTH_DB_PASSWORD
- POSTGRES_USER=$BASEAUTH_DB_USER
- POSTGRES_DB=$BASEAUTH_DB_NAME
expose:
- 8000
volumes:
- ./src:/django
- ./logs:/logs
networks:
- baseauthnet
restart: always
baseauth-cron:
image: paradoxon/alpine-cron
container_name: baseauth-cron
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./docker/cron/crontab:/tmp/crontab
network_mode: "none"
restart: always
networks:
baseauthnet: