-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yaml
65 lines (59 loc) · 1.34 KB
/
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
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
version: '2.2'
services:
api:
build:
context: .
dockerfile: Dockerfile-api
image: liipi-api
environment:
SPRING_PROFILES_ACTIVE: docker,psql,ci
PSQL_HOST: db:5432
PSQL_USERNAME: liipi
PSQL_PASSWORD: liipi
SECURITY_TOKEN_SECRET: secretsecretsecretsecretsecretsecret
mem_limit: 500m
mem_reservation: 400m
web:
build:
context: web
dockerfile: Dockerfile-web
image: liipi-web
environment:
API_URL: http://api:8080
ports:
- "8080:80"
mem_limit: 50m
mem_reservation: 20m
webdev:
build:
context: web
dockerfile: Dockerfile-web
image: liipi-web
environment:
API_URL: http://host.docker.internal:8080
# FIXME: if the host directory is removed and recreated with the same name, the container cannot anymore see it
#volumes:
# - ./web/bin/static:/usr/share/nginx/html:ro
ports:
- "8081:80"
mem_limit: 50m
mem_reservation: 20m
db:
build:
context: db
dockerfile: Dockerfile-db
image: liipi-db
environment:
POSTGRES_USER: liipi
POSTGRES_PASSWORD: liipi
ports:
- "5432:5432"
test:
build:
context: test
dockerfile: Dockerfile-test
image: liipi-test
environment:
BASEURL: http://web/
wait-for-it:
image: willwill/wait-for-it