-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1.08 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
# SPDX-FileCopyrightText: 2023 froggie <[email protected]>
#
# SPDX-License-Identifier: OSL-3.0
version: "3.9"
services:
app:
container_name: tripreporter
build: .
restart: always
env_file: [ ".env" ]
volumes:
- "./config/:/tripreporter/config/"
networks:
- tripreporter-net
ports:
- "${DOCKER_SRV_HOST}:${SRV_PORT}:${SRV_PORT}"
postgres:
container_name: tripreporter-postgres
image: postgres
build: db/.
restart: always
env_file: [ ".env" ]
environment:
POSTGRES_DB: "${DB_NAME}"
POSTGRES_USER: "${DB_USER}"
POSTGRES_PASSWORD: "${DB_PASS}"
expose:
- "${DB_PORT}"
networks:
- tripreporter-net
redis:
container_name: tripreporter-redis
image: "redis:alpine"
restart: always
env_file: [ ".env" ]
volumes:
- "redis_data:/data"
- "./config/redis.conf:/data/config/redis.conf"
command: "/data/config/redis.conf"
expose:
- "${REDIS_PORT}"
networks:
- tripreporter-net
volumes:
redis_data:
networks:
tripreporter-net:
driver: bridge