-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
42 lines (39 loc) · 870 Bytes
/
compose.yaml
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
version: "3.8"
services:
db:
container_name: tt-postgres-o
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_INITDB_ARGS: "--encoding=UTF-8 --lc-collate=C --lc-ctype=C"
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- tt-net
ports:
- "5432:5432"
redis:
container_name: tt-redis-o
image: redis
environment:
REDIS_PORT: ${REDIS_PORT}
REDIS_USER: ${REDIS_USER}
REDIS_PASSWORD: ${REDIS_PASSWORD}
REDIS_DATABASES: ${REDIS_DATABASES}
restart: always
volumes:
- redisdata:/var/lib/redis/data
networks:
- tt-net
ports:
- "6379:6379"
networks:
tt-net:
name: tt-net
driver: bridge
volumes:
pgdata:
redisdata: