-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
41 lines (40 loc) · 912 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
version: '3.7'
services:
postgres:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB_NAME}
logging:
options:
max-size: 10m
max-file: "3"
ports:
- '5438:5432'
volumes:
- ./postgres-data:/var/lib/postgresql/data
- ./create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
backend:
env_file:
"./server/.env"
build:
context: ./server
dockerfile: ./Dockerfile
image: "seb.wojtasik/flashy-backend"
ports:
- "4000:4000"
links:
- "postgres:pg"
frontend:
env_file:
"./client/.env"
build:
context: ./client
dockerfile: ./Dockerfile
image: "seb.wojtasik/flashy-frontend"
ports:
- "80:80"
links:
- "backend:back"