-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-e2e.yml
78 lines (74 loc) · 1.83 KB
/
docker-compose-e2e.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
version: "3"
services:
db:
build:
context: ${BUILD_ROOT}/haitaton-backend/scripts/docker-postgres
dockerfile: Dockerfile
container_name: haitaton-db
environment:
- DB_APP_DB=haitaton
- DB_APP_DB_TEST=haitaton_test
- DB_APP_USER=haitaton_user
- DB_APP_PASSWORD=haitaton
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
volumes:
- ${DB_VOLUME}:/var/lib/postgresql/data
networks:
backbone:
aliases:
- haitaton-db
haitaton-hanke:
image: ghcr.io/city-of-helsinki/haitaton/hanke-service:dev
container_name: haitaton-hanke
ports:
- 3000:8080
hostname: haitaton-hanke
environment:
HAITATON_HOST: db
HAITATON_PORT: 5432
HAITATON_USER: haitaton_user
HAITATON_PASSWORD: haitaton
# HAITATON_CORS_ALLOWED_ORIGINS: http://localhost:8000
depends_on:
- db
command: [ "./wait-for-it.sh", "-t", "30", "--strict", "db:5432", "--", "java", "-jar", "hanke-service.jar" ]
networks:
backbone:
aliases:
- haitaton-hanke
haitaton-ui:
build:
context: ${BUILD_ROOT}/haitaton-ui
dockerfile: ${FRONT_DOCKERFILE}
container_name: haitaton-ui
ports:
- 8000:8000
volumes:
- ${BUILD_ROOT}/haitaton-ui:/app
- '/app/node_modules'
networks:
backbone:
aliases:
- haitaton-ui
haitaton-nginx:
image: nginx:latest
container_name: haitaton_nginx
hostname: haitaton-nginx
volumes:
- ${BUILD_ROOT}/haitaton-backend/scripts/nginx/${NGINX_CONF}:/etc/nginx/conf.d/default.conf
ports:
- 3001:80
depends_on:
- haitaton-hanke
- haitaton-ui
networks:
- backbone
links:
- haitaton-hanke
- haitaton-ui
networks:
backbone:
driver: bridge