File size: 760 Bytes
04f192c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
services:
  python:
    build:
      context: .
      dockerfile: Dockerfile
    image: chatimagej-python:latest
    container_name: chatimagej-python
    volumes:
      - ./.env.local:/app/.env.local:ro
    restart: unless-stopped

  web:
    build:
      context: ./web
      dockerfile: Dockerfile
    image: chatimagej-web:latest
    container_name: chatimagej-web
    depends_on:
      python:
        condition: service_started
    restart: unless-stopped

  nginx:
    image: nginx:alpine
    container_name: chatimagej-nginx
    depends_on:
      python:
        condition: service_started
      web:
        condition: service_started
    ports:
      - "8786:80"
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
    restart: unless-stopped