forked from Blagues-API/blagues-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 952 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (47 loc) · 952 Bytes
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
version: '3'
services:
app:
container_name: blagues_api
restart: unless-stopped
build:
context: ./
dockerfile: ./docker/Dockerfile
volumes:
- ./blagues.json:/app/blagues.json
env_file:
- ./.env
ports:
- '127.0.0.1:4003:4000'
depends_on:
- postgres
networks:
- global
website:
container_name: blagues_api.fr
restart: unless-stopped
build:
context: ../blagues-api.fr/
dockerfile: ./docker/Dockerfile
tty: true
env_file:
- ../blagues-api.fr/.env
depends_on:
- app
ports:
- '127.0.0.1:3003:3000'
networks:
- global
postgres:
container_name: blagues_api_postgres
restart: unless-stopped
image: 'postgres:13'
volumes:
- ./databases/postgres:/var/lib/postgresql/data
env_file:
- ./.env
ports:
- '127.0.0.1:5440:5432'
networks:
- global
networks:
global: