This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (74 loc) · 1.79 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3.7'
services:
postgres:
image: postgres:14.1-alpine
networks:
- back
environment:
TZ: Europe/Paris
POSTGRES_USER: '${POSTGRES_USER}'
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
POSTGRES_DB: '${POSTGRES_DB}'
volumes:
- ./data:/var/lib/postgresql/data
api:
build:
context: .
dockerfile: Dockerfile.api
ports:
- '127.0.0.1:${API_PORT}:3000'
depends_on:
- postgres
environment:
TZ: Europe/Paris
DATABASE_URL: 'postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}'
API_PORT: '${API_PORT}'
networks:
- back
- api-req
studio:
build:
context: .
dockerfile: Dockerfile.studio
ports:
- '127.0.0.1:${STUDIO_PORT}:5555'
depends_on:
- postgres
environment:
TZ: Europe/Paris
DATABASE_URL: 'postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}'
STUDIO_PORT: '${STUDIO_PORT}'
networks:
- back
content:
build:
context: .
dockerfile: Dockerfile.content
ports:
- '127.0.0.1:${CONTENT_PORT}:6000'
environment:
TZ: Europe/Paris
DATABASE_URL: 'postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}'
CONTENT_PORT: '${CONTENT_PORT}'
networks:
- back
volumes:
- ./.content:/app/.content
socket:
build:
context: .
dockerfile: Dockerfile.socket
depends_on:
- postgres
environment:
TZ: Europe/Paris
DATABASE_URL: 'postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}'
SOCKET_PORT: '${SOCKET_PORT}'
ports:
- '127.0.0.1:${SOCKET_PORT}:4000'
networks:
- back
networks:
back:
api-req:
driver: bridge