forked from City-of-Helsinki/yjdh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.tet-youth.yml
More file actions
73 lines (68 loc) · 1.45 KB
/
Copy pathdocker-compose.tet-youth.yml
File metadata and controls
73 lines (68 loc) · 1.45 KB
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
version: "3.8"
services:
postgres:
image: postgres:12
restart: on-failure
environment:
POSTGRES_USER: tet
POSTGRES_PASSWORD: tet
POSTGRES_DB: tet
ports:
- 5434:5432
volumes:
- pgdata:/var/lib/postgresql/data
container_name: te-db
te-bknd:
build:
context: ./backend
dockerfile: ./docker/tet.Dockerfile
target: development
env_file:
- .env.tet
environment:
DATABASE_URL: postgres://tet:tet@te-db/tet
DATABASE_HOST: te-db.helsinki
volumes:
- ./backend/tet:/app
- ./backend/shared:/shared
- ./backend/tet/media:/var/media
depends_on:
- postgres
container_name: te-bknd
te-yout:
build:
context: ./frontend
target: development
args:
PORT: 3000
PROJECT: tet
FOLDER: youth
SERVICE: te-yout
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
env_file:
- .env.tet
environment:
NEXT_PUBLIC_MOCK_FLAG: 1
container_name: te-yout
te-local-proxy:
depends_on:
- postgres
- te-bknd
- te-yout
build:
context: ./localdevelopment/tet-youth/nginx
container_name: te-local-proxy
volumes:
- ./localdevelopment/tet-youth/nginx/:/etc/nginx/
ports:
- 127.0.0.1:8000:8000
- 127.0.0.1:3001:3001
volumes:
pgdata:
driver: local
networks:
default:
name: helsinki