-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathe2e-compose.yml
43 lines (39 loc) · 962 Bytes
/
e2e-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
version: '3.3'
services:
PG_DATABASE:
image: 'postgres'
restart: always
environment:
POSTGRES_USER: PG_USER
POSTGRES_PASSWORD: password
POSTGRES_DB: PG_DATABASE
fl-api:
build:
context: ../levels-v2v3-express
dockerfile: ../levels-v2v3-express/Dockerfile
environment:
PG_USER: PG_USER
APP_DB_ADMIN_PASSWORD: password
PHPORT: 5432
PGHOST: PG_DATABASE
IS_LOCAL: 'true'
depends_on:
- 'PG_DATABASE'
fl-ui:
build:
context: .
dockerfile: ./Dockerfile
args:
IS_LOCAL: 'true' # build time arg => NODE_ENV=development react-scripts build => use localhost as api url
depends_on:
- 'fl-api'
proxy:
image: 'nginx'
ports:
- 8080:80 # map host:8080 to proxy:80
expose:
- 80 # expose nginx:80 to other container at nginx:80
volumes:
- ./proxy.conf:/etc/nginx/nginx.conf
depends_on:
- 'fl-ui'