-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-dev.yml
52 lines (47 loc) · 1023 Bytes
/
docker-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
version: '3.3'
services:
backend:
container_name: backend
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile.dev
networks:
- internal
ports:
- "443:443"
volumes:
- .:/app
depends_on:
- postgres
- redis-service-transcendence
env_file:
- .env
redis-service-transcendence:
container_name: redis-service
image: redis:6.2-alpine
restart: unless-stopped
command: redis-server --save 20 1 --loglevel warning
volumes:
- ~/data/redis:/data
networks:
- internal
postgres:
image: postgres:16-alpine
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- '5432:5432'
volumes:
- ~/data/database:/var/lib/postgresql/data
networks:
- internal
env_file:
- .env
networks:
internal:
driver: bridge