-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
51 lines (43 loc) · 860 Bytes
/
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
version: "3.8"
services:
database:
env_file: ./.env
volumes:
- postgresdb:/var/lib/postgress
image: postgres
environment:
POSTGRES_DB: $POSTGRES_DB
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
ports:
- 5432:5432
server:
depends_on:
- database
build: ./server
env_file: ./.env
restart: on-failure
ports:
- 3333:3333
environment:
NODE_ENV: $NODE_ENV
DATABASE_URL: $DATABASE_DOCKER_URL
MAILSERVER_URL: $MAILSERVER_URL
stdin_open: true
tty: true
web:
env_file: ./web/.env.local
depends_on:
- server
build: ./web
restart: on-failure
ports:
- 4173:4173
expose:
- 4173
environment:
NODE_ENV: production
VITE_API_URL: $VITE_API_URL
stdin_open: true
tty: true
volumes:
postgresdb: