-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 914 Bytes
/
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
version: '3'
services:
fossils-db:
container_name: fossils-db
image: fossils-db
build: ./db
restart: always
ports:
- 5442:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- pgdata:/var/lib/postgresql/data
fossils-app:
container_name: fossils-app
image: fossils-app
build: ./app
ports:
- 3001:8080
environment:
PGHOST: fossils-db
PGPORT: '5432'
PGUSER: postgres
PGPASSWORD: postgres
PGDATABASE: postgres
fossils-frontend:
container_name: fossils-frontend
image: fossils-frontend
build: ./frontend
ports:
- 3002:8080
fossils-nginx:
container_name: fossils-nginx
image: fossils-nginx
build: ./nginx
depends_on:
- fossils-app
- fossils-frontend
ports:
- 80:80
volumes:
pgdata: