-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
37 lines (35 loc) · 964 Bytes
/
docker-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
version: "2.1"
services:
fuel-stations-spain-api:
image: ghcr.io/jgeek00/fuel-stations-spain-api:latest
container_name: fuel-stations-spain-api
depends_on:
- postgres
environment:
- TZ=Europe/Madrid # set your timezone
- PRODUCTION=true
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_USER=postgres # check this
- POSTGRES_PASSWORD=db_password # set this
- POSTGRES_DATABASE=db_name # set this
ports:
- 3000:3000
restart: unless-stopped
networks:
- fuel-stations-spain-net
postgres:
image: postgres:16
container_name: fuel-stations-spain-database
ports:
- 5432:5432
volumes:
- PSQL_DATA_DIR:/var/lib/postgresql/data # change this
environment:
- POSTGRES_PASSWORD=postgres # change this
restart: unless-stopped
networks:
- fuel-stations-spain-net
networks:
fuel-stations-spain-net:
driver: bridge