2022-03-02 16:44:11 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2022-03-03 08:35:13 +00:00
|
|
|
postgres:
|
2022-03-02 16:44:11 +00:00
|
|
|
image: postgres
|
2022-03-03 08:35:13 +00:00
|
|
|
container_name: postgres
|
2022-03-02 16:44:11 +00:00
|
|
|
ports:
|
2022-03-05 13:36:38 +00:00
|
|
|
- 5432:5432
|
2022-03-03 08:35:13 +00:00
|
|
|
env_file: .env
|
2022-03-02 16:44:11 +00:00
|
|
|
volumes:
|
|
|
|
- ./scripts/database/initialize.sql:/docker-entrypoint-initdb.d/initialize.sql
|
2022-03-03 08:35:13 +00:00
|
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
|
2022-03-08 09:36:04 +00:00
|
|
|
# server:
|
|
|
|
# build:
|
|
|
|
# context: .
|
|
|
|
# dockerfile: server/Dockerfile
|
|
|
|
# container_name: server
|
|
|
|
# env_file: .env
|
|
|
|
# environment:
|
|
|
|
# - POSTGRES_HOST=postgres
|
|
|
|
# ports:
|
|
|
|
# - 3100:3100
|
|
|
|
# depends_on:
|
|
|
|
# - postgres
|
2022-03-07 12:43:34 +00:00
|
|
|
|
2022-03-08 09:36:04 +00:00
|
|
|
# client:
|
|
|
|
# build:
|
|
|
|
# context: .
|
|
|
|
# dockerfile: client/Dockerfile
|
|
|
|
# container_name: client
|
|
|
|
# env_file: .env
|
|
|
|
# ports:
|
|
|
|
# - 3000:3000
|
|
|
|
# depends_on:
|
|
|
|
# - server
|
2022-03-07 12:43:34 +00:00
|
|
|
|
2022-03-03 08:35:13 +00:00
|
|
|
volumes:
|
|
|
|
pgdata:
|