-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (43 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
54
55
56
services:
web:
build: ./api
container_name: fastapi_app
restart: unless-stopped
ports:
- 3010:80
depends_on:
- db
# networks:
# - proxy-wololo
# env_file:
# - ./environment/.env # Utiliser la variable ENV_FILE pour choisir le bon fichier d'environnement
environment:
DATABASE_URL: postgresql://dev:dev@db:5432/gaston
volumes:
- ./api/app/images:/code/app/images:rw
# environment:
# DATABASE_URL: ${DATABASE_URL}
db:
image: postgres:16
restart: unless-stopped
ports:
- 5432:5432
# env_file:
# - ./environment/.env
environment:
# POSTGRES_USER: ${POSTGRES_USER} #dev
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} #dev
# POSTGRES_DB: ${POSTGRES_DB} #gaston
POSTGRES_USER: dev
POSTGRES_PASSWORD: dev
POSTGRES_DB: gaston
volumes:
- postgres_data:/var/lib/postgresql/data:rw
# networks:
# - proxy-wololo
volumes:
postgres_data:
# networks:
# proxy-wololo:
# external:
# name: wololo